sanitize(); return [ 'file' => 'required|max:10000|mimes:png,ai,svg,jpeg,tiff,pdf,gif,psd,txt,doc,xls,ppt,xlsx,docx,pptx' ]; } public function response(array $errors) { return new JsonResponse(['error' => $errors], 400); } }