factory(AppUser::class, 10)->create();
php artisan make:factory CommentFactory
return [
'name' => $this->faker->name,
'text' => $this->faker->text()
];
public function run()
{
Comment::factory()
->times(3)
->create();
}
php artisan db:seed
php artisan tinkerProduct::factory()->count(500)->create()
php artisan make:factory UserFactory
$users = User::factory()->count(3)->make();