isMethod('PUT') || $this->isMethod('PATCH')) { return [ 'status' => ['required', Rule::in(SupportRequestStatusEnum::toArray())], ]; } return [ 'category' => ['required', Rule::in(SupportRequestCategoryEnum::toArray())], 'title' => ['required', 'string', 'max:150'], 'message' => ['required', 'string', 'max:8000'], 'name' => ['sometimes', 'nullable', 'string', 'max:255'], 'email' => ['sometimes', 'nullable', 'email', 'max:255'], 'phone' => ['sometimes', 'nullable', 'string', 'max:30'], ]; } }