10.April 2026
This commit is contained in:
parent
a00c42e770
commit
f58c709945
208 changed files with 19280 additions and 2914 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