check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'brand_id' => 'required|numeric|exists:brands,id', 'subject_id' => 'required|numeric|exists:claim_subjects,id', 'type' => ['required', new Enum(ClaimType::class)], 'status' => ['required', new Enum(ClaimStatus::class)], 'response_type' => ['present', 'nullable', new Enum(ClaimResponseType::class)], ]; } /** * Get custom attributes for validator errors. * * @return array|null> */ public function attributes(): array { return [ 'brand_id' => trans('models.classes.brands'), 'subject_id' => trans('models.classes.claimsubjects'), 'type' => trans('validation.custom.type'), 'status' => trans('validation.custom.status'), 'response_type' => trans('validation.custom.response_type'), ]; } }