public static function swap($instance)
    {
        static::$resolvedInstance[static::getFacadeAccessor()] = $instance;

        if (isset(static::$app)) {
            static::$app->instance(static::getFacadeAccessor(), $instance);
        }
    }
public static function swap($instance)
    {
        static::$resolvedInstance[static::getFacadeAccessor()] = $instance;

        if (isset(static::$app)) {
            static::$app->instance(static::getFacadeAccessor(), $instance);
        }
    }
public static function swap ( $ instance ) { static :: $ resolvedInstance [ static :: getFacadeAccessor ( ) ] = $ instance ; if ( isset ( static :: $ app ) ) { static :: $ app -> instance ( static :: getFacadeAccessor ( ) , $ instance ) ; } }
Hotswap the underlying instance behind the facade.

@param  mixed  $instance
@return void
Hotswap the underlying instance behind the facade .