Run Specific Seeder In Laravel Command Example

Hello Artisan

In this quick example i will show you how to run specific seeder laravel. So run specific seeder laravel is the todays tutorial. I will discuss how to run specific seeder in laravel.

So from this tutorial you will learn laravel run specific seeder. This article will help you to learn in detailed on laravel call specific seeder. So let's discuss about laravel run one seed.

Now assume you have a AdminSeeder class and now you would like seed it in your database. So run below command to run specific seeder laravel.

php artisan db:seed --class=AdminSeeder


Read also: Artisan Command to Run All Seeders In Laravel


Hope it can help you.


#laravel #database-seeder