29 lines
580 B
PHP
29 lines
580 B
PHP
<?php
|
|||
|
|
|
||
|
|
namespace Database\Factories;
|
||
|
|
|
||
|
|
use App\Models\Investigation;
|
||
|
|
use App\Models\User;
|
||
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @extends Factory<Investigation>
|
||
|
|
*/
|
||
|
|
class InvestigationFactory extends Factory
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Define the model's default state.
|
||
|
|
*
|
||
|
|
* @return array<string, mixed>
|
||
|
|
*/
|
||
|
|
public function definition(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'name' => fake()->sentence(3),
|
||
|
|
'description' => fake()->paragraph(),
|
||
|
|
'owner_id' => User::factory(),
|
||
|
|
'status' => 'open',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|