Answer the question
In order to leave comments, you need to log in
`
Is there a validation equivalent in laravel for a successful request?
That is, like `buildFailedValidationResponse`. In the case of a json request, we have - json, in the usual one - `redirect()->with...` Only with status 200.
Answer the question
In order to leave comments, you need to log in
In general, I didn’t understand anything what you want to do, but in order to detect what data to send to Laravel, there is thisrequest()->isJson()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question