bash : cd nama-proyek
bash : cp .env.example .env
edit file : .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_db # (atau nama database kamu)
DB_USERNAME=root # (atau user MySQL kamu)
DB_PASSWORD= # (isi password jika ada)
bash : php artisan migrate
bash : php artisan key:generate
bash : php artisan serve
jika terjadi fatal error;
bash : composer install
bash : composer update
kemudian ulangi:
bash : php artisan migrate
bash : php artisan key:generate
bash : php artisan serve
buka di browser : http://127.0.0.1:8000
_ - - - ***
0 Reviews:
Posting Komentar