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