Initial commit
This commit is contained in:
30
database/factories/WorkExperienceFactory.php
Normal file
30
database/factories/WorkExperienceFactory.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user