how to run single factory in laravel code example
Example 1: laravel run seed
#All of them
php artisan db:seed
#One class
php artisan db:seed --class=UserSeeder
Example 2: php artisan make factory
php artisan make:factory AddressFactory --model="App\\Address"
Example 3: laravel database seeder
insert([
'name' => Str::random(10),
'email' => Str::random(10).'@gmail.com',
'password' => Hash::make('password'),
]);
}
}