how to use laravel seeder code example
Example 1: eloquent run seeder
php artisan db:seed --class=UserSeeder
Example 2: laravel migrate seed
php artisan migrate:fresh --seed
Example 3: laravel 8 seeding
php artisan make:seeder UserSeeder
php artisan db:seed --class=UserSeeder
php artisan migrate:fresh --seed
php artisan make:seeder UserSeeder