Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

validation file laravel

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