Initial commit
This commit is contained in:
24
database/factories/InterestFactory.php
Normal file
24
database/factories/InterestFactory.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Interest;
|
||||
use App\Models\Resume;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/** @extends Factory<Interest> */
|
||||
final class InterestFactory extends Factory
|
||||
{
|
||||
protected $model = Interest::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->name(),
|
||||
'keywords' => $this->faker->words(),
|
||||
'resume_id' => Resume::factory(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user