$this->renderable(function (\Illuminate\Auth\AuthenticationException $e, $request) { if ($request->is('api/*')) { return response()->json([ 'message' => 'Not authenticated' ], 401); } });
$this->renderable(function (\Illuminate\Auth\AuthenticationException $e, $request) { if ($request->is('api/*')) { return response()->json([ 'message' => 'Not authenticated' ], 401); } });