Files
resume.een.ninja/database/factories/WorkExperienceFactory.php
2025-08-03 00:01:31 +02:00

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(),
];
}
}