*/ public function rules(): array { return [ 'crowd_type_id' => ['sometimes', 'ulid', Rule::exists('crowd_types', 'id')->where('organisation_id', $this->route('event')->organisation_id)], 'name' => ['sometimes', 'string', 'max:255'], 'type' => ['sometimes', Rule::enum(CrowdListType::class)], 'recipient_company_id' => ['nullable', 'ulid', Rule::exists('companies', 'id')->where('organisation_id', $this->route('event')->organisation_id)], 'auto_approve' => ['sometimes', 'boolean'], 'max_persons' => ['nullable', 'integer', 'min:1'], ]; } }