I\'m getting 422 Unprocessable Entity error even when I\'m submitting my form via Ajax.
My javascript file
$.ajaxSetup({ headers
Whoever is still looking for the answer, if you are using Lumen make sure the Request object is a type of Illuminate\Http\Request and not the default one from Lumen.
```function create(Request $request){