*/ public function rules(): array { $orgId = $this->route('event')->organisation_id; return [ 'user_id' => ['required', 'ulid', 'exists:users,id'], 'crowd_type_id' => ['required', 'ulid', Rule::exists('crowd_types', 'id')->where('organisation_id', $orgId)], ]; } }