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