how to use database seeder in laravel 8 for postgresql code example
Example 1: how to make db seeder in laravel
php artisan make:seeder UsersTableSeeder
Example 2: laravel database seeder
insert([
'name' => Str::random(10),
'email' => Str::random(10).'@gmail.com',
'password' => Hash::make('password'),
]);
}
}