Both Factory and Seeder are used to generate testing data for your application. But there are some differences:
Factory
By using factories you can easily create test data for your Laravel application based on your Model. In Factory, we are using other classes or libraries like fzaninotto/faker to generate fake data easily.
In Factory, we can also generate data related to the relationship while in DB Seeder we cannot do that.
Or different example:
Seeder
Laravel includes the ability to seed your database with data using seed classes. All seed classes are stored in the database/seeders directory. By default, a DatabaseSeeder class is defined for you. From this class, you may use the call method to run other seed classes, allowing you to control the seeding order.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.