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.

 

Facebook Github
A web enthusiastic, a self-motivated full-stack software engineer from Dhaka, Bangladesh with experience in developing applications using Laravel , React and Vue js