laravel seed only one table code example
Example 1: seed specific table
php artisan db:seed --class=UserTableSeeder
Example 2: laravel 8 seeding
php artisan db:seed
php artisan db:seed --class=UserSeeder
php artisan db:seed --class=UserTableSeeder
php artisan db:seed
php artisan db:seed --class=UserSeeder