First You have to make a file .env and set : DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel-belajar DB_USERNAME=root DB_PASSWORD=
to build the falue of database : you have to run a command on your terminal "php artisan migrate"
and the last for running the program : you have to run a command on your terminal "php artisan serve"