create seeder in laravel 5 code example
Example 1: how to run specific seeder in laravel
php artisan db:seed --class=UserSeeder
Example 2: laravel 8 seeding
insert([
'name' => Str::random(10),
'email' => Str::random(10).'@gmail.com',
'password' => Hash::make('password'),
]);
}
}