Closed rafa-acioly closed 2 years ago
I've notice that the validations was not passing and for that reason the redirect occurs.
Now, how can I send a json response with the errors that occur?
Maybe this helps? https://laravelactions.com/2.x/as-controller.html#jsonresponse
@rafa-acioly Maybe send it with a header that it expects JSON?
adding the Accept: application/json
header worked, thanks!
After registering my action in my routes:
The
PUT
endpoint always redirect to the home page. I've added the methodasController
like this:What am I missing? The package version works on Laravel 9?
Details: