Create module elements with a seeder
Created 7 years ago by araminhoIs 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:
/markets-module/src/MarketsModuleSeeder.php
/markets-module/src/MarketType/MarketTypeSeeder.php
Then you just run (from the root of your project): php artisan db:seed --addon=markets