*/ class BaccaratLossCoverEventFactory extends Factory { /** * 定义默认测试数据。 * * @return array */ public function definition(): array { $startsAt = now()->subMinutes(5); $endsAt = now()->addMinutes(25); return [ 'title' => '你玩游戏我买单', 'description' => '测试活动说明', 'status' => 'active', 'starts_at' => $startsAt, 'ends_at' => $endsAt, 'claim_deadline_at' => $endsAt->copy()->addHours(24), 'created_by_user_id' => User::factory(), 'closed_by_user_id' => null, 'started_notice_sent_at' => null, 'ended_notice_sent_at' => null, 'participant_count' => 0, 'compensable_user_count' => 0, 'total_loss_amount' => 0, 'total_claimed_amount' => 0, ]; } }