Steps to start take-home project in your machine
1.composer install
.
2.Copy, paste .env.example
to .env
and change the QUEUE_CONNECTION=database
, also check DB_DATABASE=take_home
variable.
3.run php artisan:migrate
.
You can see all the possible combinations if you visit the route http://take-home.test/comment-combinations
.
I've taken care of it already and created a file in /config/data.php
, an array that returns all the possible combinations.
4.The seeding command, 2 seeds will be executed, PostSeeder
, CommentsSeeder
, comments seeder inserts data as chunks, to improve the performance.
5.run php artisan db:seed
.