lotteryAdmin(); if (! $admin instanceof AdminUser) { return false; } $key = (string) $this->route('key', ''); if (str_starts_with($key, 'settlement.')) { return $admin->hasAdminPermission('prd.payout.manage'); } return true; } public function rules(): array { return [ 'value' => ['present'], ]; } }