Тёмный

A few different ways to seed databases in Laravel 

Andrew Schmelyun
Подписаться 37 тыс.
Просмотров 3,9 тыс.
50% 1

Наука

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@abdulbasitsalah2918
@abdulbasitsalah2918 Год назад
Thank you, really great video for understanding database seeder and factories
@tukurhamid
@tukurhamid 3 месяца назад
Thank you very much, this was helpful
@richardtrudel5363
@richardtrudel5363 7 месяцев назад
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.
@najbo73
@najbo73 Год назад
Excellent tutorial, thanks a lot.
@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 8 месяцев назад
Yeeey.. No more conditionals or loops ... thanks
Далее
You don't need a frontend framework
15:45
Просмотров 127 тыс.
Quick and Easy Nested Categories in Laravel
20:58
Просмотров 16 тыс.
Microservices with Databases can be challenging...
20:52
PHP on the frontend! No more Javascript!
14:47
Просмотров 123 тыс.
The Value of Source Code
17:46
Просмотров 51 тыс.
Laravel Service Providers: All You Need to Know
13:13
How to use Laravel's bind and singleton methods
9:40
The Tools I Use to Build Products in Laravel
19:00
Просмотров 31 тыс.
I used to hate QR codes. But they're actually genius
35:13