You understand this subject and it is clear from the first 10 seconds of the video. Love your teaching style instant Sub, cant wait to get through more of your content! Do you have a newsletter?
Another trick: if you have taxonomies, pre-built categories or any special things you want to seed into your database when you start a new project, you can read from a JSON file then run a foreach loop in a seeder. You can also verify for the existence of the model rows before actually create it. Useful for seeding countries, languages, topics or some other stuff like that.
Thanks for that video, man! Maybe good for a follow-up video: seeding 10 users and then for each user ... random 1 through 5 comments. $users = (all 10 users)->each->closure->(using extra variables)
You understand this subject and it is clear from the first 10 seconds of the video. Love your teaching style instant Sub, cant wait to get through more of your content! Do you have a newsletter?
Thank you, really great video for understanding database seeder and factories
Excellent tutorial, thanks a lot.
Thank you very much, this was helpful
Another trick: if you have taxonomies, pre-built categories or any special things you want to seed into your database when you start a new project, you can read from a JSON file then run a foreach loop in a seeder. You can also verify for the existence of the model rows before actually create it. Useful for seeding countries, languages, topics or some other stuff like that.
Thanks for that video, man! Maybe good for a follow-up video: seeding 10 users and then for each user ... random 1 through 5 comments. $users = (all 10 users)->each->closure->(using extra variables)
thanks alot!
Yeeey.. No more conditionals or loops ... thanks