pai-sklep/database/seeders/DatabaseSeeder.php

21 lines
386 B
PHP
Raw Normal View History

2021-09-05 02:22:17 +02:00
<?php
namespace Database\Seeders;
2021-11-14 20:44:10 +01:00
use App\Models\Image;
2021-09-05 02:22:17 +02:00
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
\App\Models\User::factory(10)->create();
2021-11-14 20:44:10 +01:00
\App\Models\Product::factory(10)->has(Image::factory()->count(3))->create();
2021-09-05 02:22:17 +02:00
}
}