According to the documentation:
$validator = Validator::make($request->all(), [
'file' => 'max:500000',
]);
The value is in kilobytes. I.e. max:10240
= max 10 MB.
More Related Contents:
- Laravel 5.2 Validation Error not appearing in blade
- Laravel update model with unique validation rule for attribute
- Laravel unique validation on multiple columns
- Laravel password validation rule
- Laravel: Validation unique on update
- How validate unique email out of the user that is updating it in Laravel?
- required_if Laravel 5 validation
- Custom validator in Laravel 5
- How to return custom error message from controller method validation
- Laravel: Validate maximum File size?
- Check if laravel model got saved or query got executed
- What does the random(1, 6) means in laravel scheduling? [duplicate]
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- Laravel view not found exception
- Add a custom attribute to a Laravel / Eloquent model on load?
- Extension gd is missing from your system – laravel composer Update
- Laravel PHP Command Not Found
- What is the difference between find(), findOrFail(), first(), firstOrFail(), get(), list(), toArray()
- Laravel: validate an integer field that needs to be greater than another
- Laravel Request::all() Should Not Be Called Statically
- Laravel 5.4 field doesn’t have a default value
- How to select all column name from a table in laravel?
- Laravel – Model Class not found
- Laravel nested relationships
- ErrorBag is always empty in Laravel 5.2
- Laravel 5.2 not reading env file
- getting the value of an extra pivot table column laravel
- Laravel 3 : Looking for explanation how to use the model
- Create a Insert… Select statement in Laravel
- Laravel Form methods VS traditional coding