Seed Multiple Rows at Once Using Laravel Factories
Often, we need to populate our database with default data, or we might need a large amount of data for testing our application at scale. Fortunately, Laravel factories allow you to generate any type and quantity of data you may need.
In this guide, we’ll be seeding multiple rows at once into a “products” table by using a model, factory and seeder in conjunction.
Read more on: https://laracoding.com/how-to-seed-multiple-rows-at-once-using-laravel-factories/
Category
WRITE A COMMENT