laravel db seeder update or create code example
Example 1: laravel database seeder
insert([
'name' => Str::random(10),
'email' => Str::random(10).'@gmail.com',
'password' => Hash::make('password'),
]);
}
}
Example 2: laravel run seeder
php artisan migrate:fresh --seed