laravel seed redo code example
Example 1: laravel 8 seeding
php artisan db:seed
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'),
]);
}
}