json($validator->errors(), 422)); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'request_mail_id' => 'required|string|max:255', ]; } /** * Handle a passed validation attempt. */ protected function passedValidation(): void { return; } }