filmov
tv
Laravel Crash Course - Using Model Factories
![preview_player](https://i.ytimg.com/vi/24R4j4-vCvM/maxresdefault.jpg)
Показать описание
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.
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.