Answer the question
In order to leave comments, you need to log in
Laravel response SPA?
Hello. Let's say on the backend I have the following code:
if(...) {
return response()->json([
'message' => 'Some message!';
], 401);
} else {
return response()->json([
'message' => 'Other some message!'
], 401);
}
Answer the question
In order to leave comments, you need to log in
Evil uncles do not allow you to send other variables, except for message?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question