Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

validation file in laravel

$request->validate([
  'file' => 'required|mimes:png,jpg,csv,txt,xlx,xls,pdf|max:2048'
]);
Source by www.nicesnippets.com #
 
PREVIOUS NEXT
Tagged: #validation #file #laravel
ADD COMMENT
Topic
Name
1+1 =