- use below command to generate .env
cp .env.example .env
-
Config your .env file based on your connection database and testing database
php artisan key:generate
- Migrate database
php artisan migrate
- Seed new fake data generated by factories
php artisan db:seed --class=PopulateDatabaseSeeder
- Serve the application
php artisan serve
Note: To test the application
./vendor/bin/phpunit