events-venues/database/seeders/VenueSeeder.php

24 lines
469 B
PHP

<?php
declare(strict_types = 1);
namespace Database\Seeders;
use App\Models\Venue;
use Illuminate\Database\Seeder;
//use Illuminate\Database\Console\Seeds\WithoutModelEvents;
class VenueSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
Venue::factory(config('common.seeding.model.venue.count'))->create();
//->hasEvents(3)->create(); //Impossible to count 50 events for 20 venues
}
}