28 lines
617 B
PHP
28 lines
617 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\CooperationMedia;
|
|
use App\Models\CooperationPayment;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<CooperationPayment>
|
|
*/
|
|
class CooperationPaymentFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'cooperation_media_id' => CooperationMedia::factory(),
|
|
'amount' => fake()->numberBetween(100000, 10000000),
|
|
'payment_date' => fake()->date(),
|
|
];
|
|
}
|
|
}
|