Sometimes we have more than one seeder class and you would like to run all seeders. So in this tutorial, I will show you laravel run all seeders in laravel 9 application.

We can pass class name which we want to seed with the db:seed command. But if you remove this class name and only run db:seed, it will seed all your classes.

php artisan db:seed

 

Conclusion

I have tried to discuss the clear concept of how do I run a seeder in laravel. Now we know laravel run all seeders. Hope this how to run all seeders in laravel tutorial will help you.