22 lines
542 B
PHP
22 lines
542 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\IncentiveNewPartner;
|
|
use App\Models\IncentiveParticipant;
|
|
use App\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class IncentiveNewPartnerFactory extends Factory
|
|
{
|
|
protected $model = IncentiveNewPartner::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'participant_id' => IncentiveParticipant::factory(),
|
|
'user_id' => fn () => User::inRandomOrder()->first()?->id ?? 1,
|
|
'registered_at' => now(),
|
|
];
|
|
}
|
|
}
|