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