Laravel Run Samen
#All of them
php artisan db:seed
#One class
php artisan db:seed --class=UserSeeder
Eranot
#All of them
php artisan db:seed
#One class
php artisan db:seed --class=UserSeeder
php artisan db:seed --class=UserSeeder
php artisan db:seed --class=NameOfSeeder
php artisan migrate:fresh --seed
php artisan make:seeder NameOfTheSeeder
Syntax: php artisan db:seed --class=[Seeder Name Here]
Example: php artisan db:seed --class=UserSeeder
===============================================================
If your laravel application is module base like User, Blog etc
so then you want to run a specific Blog module seeder
then you should try this:
This will run direct Database Seeder class
Syntax: php artisan module:seed [module name here]
Example: php artisan module:seed Blog
for a specific seeder in module
Syntax: php artisan module:seed Blog [class name here]
Example: php artisan module:seed Blog --class=PostSeeder