How to run a specific seeder class in laravel

Created at 15-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

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.