Create module elements with a seederCreated 5 years ago by araminho
Is there a way to create module elements with a seeder? For example, I created a ‘videos’ module which has its categories. And I would like to create a few categories and videos with a seeder. I would appreciate an example. Thanks.
I have a "markets" module, and created a seeder for a "MarketType" stream within it:
Then you just run (from the root of your project): php artisan db:seed --addon=markets