is('api/*') || $request->expectsJson()) { return null; } return route('login'); } }