You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
app('Dingo\Api\Exception\Handler')->register(function (Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException $exception) {
return Response::make(['error' => 'Hey, what do you think you are doing!?'], 401);
});
The text was updated successfully, but these errors were encountered:
I have this code in AppServiceProvider:
And I am getting error :
But this works fine:
In your documentation you are returning like:
The text was updated successfully, but these errors were encountered: