32 lines
813 B
PHP
32 lines
813 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Education;
|
|
use App\Models\Resume;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
/** @extends Factory<Education> */
|
|
final class EducationFactory extends Factory
|
|
{
|
|
protected $model = Education::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'institution' => $this->faker->word(),
|
|
'url' => $this->faker->url(),
|
|
'area' => $this->faker->word(),
|
|
'study_type' => $this->faker->word(),
|
|
'start_date' => Carbon::now(),
|
|
'end_date' => Carbon::now(),
|
|
'score' => $this->faker->word(),
|
|
'courses' => $this->faker->words(),
|
|
'resume_id' => Resume::factory(),
|
|
];
|
|
}
|
|
}
|