Question : validation file laravel
Answered by : shahram
$request->validate([ 'file' => 'required|mimes:png,jpg,jpeg,csv,txt,xlx,xls,pdf|max:2048'
]);
Source : https://www.nicesnippets.com/blog/laravel-validation-file-example | Last Update : Wed, 04 May 22
Question : validation file in laravel
Answered by : sohaib-nasir
$request->validate([ 'file' => 'required|mimes:png,jpg,csv,txt,xlx,xls,pdf|max:2048'
]);
Source : | Last Update : Wed, 22 Jun 22