Laravel Run Seed
#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 migrate:fresh --seed
php artisan make:seeder NameOfTheSeeder
CREATE SEEDER -> run php artisan command:
php artisan make:seeder UsersTableSeeder
1#create a laravel seeding file
php artisan make:seeder <seeder file name>
#example
php artisan make:seeder ShopSeeder
2#after seeding file create and seed data added,run this command below to add thos data in database
php artisan db:seed --class=<seeder file name>
#example
php artisan db:seed --class=ShopSeeder
3# if want to add all seeder fill data just run
php artisan db:seed