You can define model factories in ModelFactory.php file and use the each() method to auto generate content based on the relationship set.
You can check detailed explanation here http://deepdivetuts.com/seeding-two-tables-using-laravel-5-3
I am using Faker library to add mass data.
Hope that helps
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community