Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation image or file

$validate = Validator::make($params = $request->all(), [
  'type' => 'required',
  'files' => 'mimes:jpeg,png,jpg,svg,doc,docx,odt,pdf,tex,txt,wpd,tiff,tif,csv,psd,key,odp,pps,ppt,pptx,ods,xls,xlsm,xlsx'
]);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #validation #image #file
ADD COMMENT
Topic
Name
7+3 =