28 lines
577 B
PHP
28 lines
577 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Project;
|
|
use App\Models\TicketPriority;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<TicketPriority>
|
|
*/
|
|
class TicketPriorityFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => fake()->randomElement(['Low', 'Medium', 'High', 'Urgent']),
|
|
'position' => 1,
|
|
'project_id' => Project::factory(),
|
|
];
|
|
}
|
|
}
|