A few different ways to seed databases in Laravel

Поделиться
HTML-код
  • Опубликовано: 31 янв 2025

Комментарии • 8

  • @AlexanderGeorge1991
    @AlexanderGeorge1991 2 месяца назад

    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?

  • @abdulbasitsalah2918
    @abdulbasitsalah2918 Год назад +2

    Thank you, really great video for understanding database seeder and factories

  • @najbo73
    @najbo73 Год назад

    Excellent tutorial, thanks a lot.

  • @tukurhamid
    @tukurhamid 7 месяцев назад

    Thank you very much, this was helpful

  • @rtrudel
    @rtrudel 11 месяцев назад

    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.

  • @nielsdrost6448
    @nielsdrost6448 Год назад

    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)

  • @hc5131
    @hc5131 Год назад

    thanks alot!

  • @constantine9074
    @constantine9074 Год назад

    Yeeey.. No more conditionals or loops ... thanks