28 lines
577 B
PHP
28 lines
577 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Cooperation;
|
|
use App\Models\RejectionReason;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<RejectionReason>
|
|
*/
|
|
class RejectionReasonFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'rejectable_type' => Cooperation::class,
|
|
'rejectable_id' => Cooperation::factory(),
|
|
'reason' => fake()->sentence(),
|
|
];
|
|
}
|
|
}
|