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