31 lines
665 B
PHP
31 lines
665 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Enums\InstitutionLinkType;
|
|
use App\Models\Institution;
|
|
use App\Models\InstitutionLink;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<InstitutionLink>
|
|
*/
|
|
class InstitutionLinkFactory extends Factory
|
|
{
|
|
protected $model = InstitutionLink::class;
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'institution_id' => Institution::factory(),
|
|
'url' => fake()->url(),
|
|
'type' => InstitutionLinkType::Official,
|
|
'label' => null,
|
|
'sort_order' => 0,
|
|
];
|
|
}
|
|
}
|