laravel validation max size 10mb code example
Example: laravel validate max file size
$validator = Validator::make($request->all(), [
'file' => 'max:500000',
]);
$validator = Validator::make($request->all(), [
'file' => 'max:500000',
]);