Laravel Crash Course - Using Model Factories

preview_player
Показать описание
Using Model Factories

In the last couple of lessons you've learned about Seeder to generate some amounts of records into your database table. you've also learn faker library which allows you to conveniently generate various kinds of random data.

Now Laravel also provide another feature called model factories which is very convenient to quickly build out “fake” models.

It is very useful for testing and seeding fake data into your database to see your code in action before user enter any real data.
Рекомендации по теме