Seeding into Modules with Media
Whenever you create a module with the twill artisan commands they usually also come with Seeders. My main question here is; Is there a way to also seed media(s) into modules when doing seeding?
Can anyone guide me in the right direction for this? This could either be for a repeater or just the cover image.
2 Replies
Yes you can. This should get you going - this is what I use on a Singleton Model where we have the following mediaParams set:
Oh nice! I will give it a go and report back on this. I appreciate your help. @pauldwight
@pauldwight This worked brilliantly. Thank you!