G
G
GaserV2016-10-12 08:53:06
Laravel
GaserV, 2016-10-12 08:53:06

How to return json during user authorization/registration?

Good morning. Tell me please. When authorizing / registering as a user, the caravel seems to give json. Is it possible to modify this somehow? Those. so that it returns json like: fail: true if there are errors, and put errors in the fail object, in the form of key\value. Now it immediately returns key/value and does not return a message about successful authorization/registration.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav Pochepko, 2016-10-12
@DJZT

In the controller
I think you understand

V
Vyacheslav Plisko, 2016-10-12
@AmdY

That's right, you don't need any statuses, they are in the headers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question