logout(); }); } /** * Register a third-party authentication driver. * * @param string $driver * @param Closure $resolver * @return void */ public static function extend($driver, Closure $resolver) { static::$registrar[$driver] = $resolver; } /** * Magic Method for calling the methods on the default cache driver. * * * // Call the "user" method on the default auth driver * $user = Auth::user(); * * // Call the "check" method on the default auth driver * Auth::check(); * */ public static function __callStatic($method, $parameters) { return call_user_func_array(array(static::driver(), $method), $parameters); } }