10.April 2026
This commit is contained in:
parent
4a8f4b4abc
commit
396d049439
203 changed files with 18098 additions and 2911 deletions
22
database/factories/IncentiveNewPartnerFactory.php
Normal file
22
database/factories/IncentiveNewPartnerFactory.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue