public static function base()
    {
        if (isset(static::$base)) {
            return static::$base;
        }

        $url = Config::get('app.url');

        if ($url !== '') {
            $base = $url;
        } else {
            $base = self::$url;
        }

        return static::$base = $base;
    }