When using the validate() method during the AJAX request, Laravel will not generate the redirect response. Instead, Laravel generates the JSON response containing all of the validation errors. That JSON response will be sent with a 422 HTTP status code. Form Request Validation In Laravel 6 Jan 30, 2019 · Hi guys, in this post, we will learn how to add multiple file upload validation with array in laravel 5.7. we almost require for multiple images or file upload, so you also need to use validation like required, mimes, max etc. here you will see validation for multiple images in laravel 5. JSON API recommends using the ISO 8601 format for date and time strings in JSON. This is not possible to validate using Laravel's date_format validation rule, because W3C state that a number of date and time formats are valid. For example, all of the following are valid: @taylorotwell I was about to say the same thing as @MalcolmHall.My api received invalid json, however Laravel is essentially telling me I have received no input. I didn't even know that I was receiving invalid JSON as my human eyes are no good a parsing for a redundant comma. The json method will automatically set the Content-Type header to application/json, as well as convert the given array to JSON using the json_encode PHP function: return response()->json([ 'name' => 'Abigail', 'state' => 'CA' ]); If you would like to create a JSONP response, you may use the json method in combination with the withCallback method: If I look at Illuminate\Http\Request, it doesn't appear to override get() from it's superclass. As a result, when I do get() when the request content type is JSON, I end up not getting any data.