How to run a specific seeder class in laravel

Updated at 14-Jul-2021, By samar

How to run a specific seeder class in laravel

We will use programming in this lesson to attempt to solve the "How to run a specific seeder class in laravel".

You can run a specific seeder class in laravel using php artisan db:seed with specify the class name using --class=ClassName
  • Seeding data using a specific seeder class to run individually using artisan command

    php artisan db:seed --class=UserSeeder
    

Back to code snippet queries related laravel