31 lines
785 B
PHP
31 lines
785 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Resume;
|
|
use App\Models\WorkExperience;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
/** @extends Factory<WorkExperience> */
|
|
final class WorkExperienceFactory extends Factory
|
|
{
|
|
protected $model = WorkExperience::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => $this->faker->name(),
|
|
'position' => $this->faker->word(),
|
|
'url' => $this->faker->url(),
|
|
'start_date' => Carbon::now(),
|
|
'end_date' => Carbon::now(),
|
|
'summary' => $this->faker->text(),
|
|
'highlights' => $this->faker->words(),
|
|
'resume_id' => Resume::factory(),
|
|
];
|
|
}
|
|
}
|