singleton('auth.driver', function ($app) use ($guard) { return $app['auth']->guard($guard); }); return $next($request); } }