applicant-site/database/seeders/DatabaseSeeder.php

41 lines
931 B
PHP
Raw Normal View History

2024-01-10 12:57:24 +03:00
<?php
namespace Database\Seeders;
2024-02-16 10:43:55 +03:00
use App\Models\ExaminationType;
2024-01-11 15:10:01 +03:00
use App\Models\User;
2024-01-10 12:57:24 +03:00
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
2024-02-12 11:25:00 +03:00
User::factory()->create([
2024-02-14 10:18:45 +03:00
'name' => config('app.admin_name'),
'email' => config('app.admin_email'),
2024-02-12 11:25:00 +03:00
'password' => 123456
]);
User::factory(10)->create();
2024-01-19 19:15:45 +03:00
$this->call([
2024-02-08 16:20:05 +03:00
EducationalInstitutionSeeder::class,
FacultySeeder::class,
DepartmentSeeder::class,
2024-02-14 15:00:28 +03:00
EducationLevelSeeder::class,
2024-02-15 09:58:01 +03:00
EducationFormSeeder::class,
2024-02-16 10:43:55 +03:00
ExaminationTypeSeeder::class,
2024-02-17 11:30:32 +03:00
SubjectSeeder::class,
2024-02-12 11:25:00 +03:00
DirectionSeeder::class,
2024-01-19 19:15:45 +03:00
]);
$this->call([
AdmissionSeeder::class,
DocumentSeeder::class,
]);
2024-01-10 12:57:24 +03:00
}
}