svoydom/database/seeders/DatabaseSeeder.php

27 lines
493 B
PHP
Raw Permalink Normal View History

2023-05-17 09:57:20 +03:00
<?php
namespace Database\Seeders;
use Database\Factories\UserFactory;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
\App\Models\User::factory(10)->create();
$this->call([
UserSeeder::class,
LocalizationSeeder::class,
CountrySeeder::class,
RegionSeeder::class,
]);
}
}