laravel validate max file size
snippet in php

laravel validate max file size

user5162

$validator = Validator::make($request->all(), [
    'file' => 'max:500000',
]);