Sometimes we have more than one seeder class and you would like to seed only one specific class. So in this tutorial, I will show you how to run a specific seeder in laravel 9 application.

We can pass class name which we want to seed with the db:seed command. So let's see how we can run specific seeder laravel 9 application.

php artisan db:seed --class=YourSpecificSeederClassName

 

Read also: Laravel 9 Database Seeder Example Tutorial

 

Conclusion

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