`Is there a validation equivalent in laravel for a successful request?
Z
Z
Zakhar Morozov2016-05-07 08:35:38
Laravel
Zakhar Morozov, 2016-05-07 08:35:38

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

2 answer(s)
E
Eugene, 2016-05-07
@Nc_Soft

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 this
request()->isJson()

D
D', 2015-06-16
@IvanOne

sudo must be removed
Or run:

$ ANDROID_HOME="/home/ivan/sk/" sudo cordova run android

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question