*/ public function rules(): array { return [ 'crowd_type_id' => ['sometimes', 'ulid', 'exists:crowd_types,id'], 'name' => ['sometimes', 'string', 'max:255'], 'email' => ['sometimes', 'email', 'max:255'], 'phone' => ['nullable', 'string', 'max:30'], 'company_id' => ['nullable', 'ulid', 'exists:companies,id'], 'status' => ['sometimes', 'in:invited,applied,pending,approved,rejected,no_show'], 'is_blacklisted' => ['sometimes', 'boolean'], 'admin_notes' => ['nullable', 'string'], 'custom_fields' => ['nullable', 'array'], ]; } }