'mimes:png,gif,jpg,jpeg,svg|max:2000', 'avatar' => 'mimes:png,gif,jpg,jpeg,svg|max:2000', ]; } public function response(array $errors) { return $this->redirector->back()->withInput()->withErrors($errors, $this->errorBag); } }