Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

validation file type 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 #type #laravel
ADD COMMENT
Topic
Name
9+6 =