expectsJson()) { // return route('login'); // } // } protected function unauthenticated($request, array $guards) { return baseResponse( 'failed', 'You do not have the required authorization!', null, null, 401 ); } }