controller check image file size in laravel php code code example
Example: laravel validate max file size
$validator = Validator::make($request->all(), [
'file' => 'max:500000',
]);
$validator = Validator::make($request->all(), [
'file' => 'max:500000',
]);