public static function set($lang)
    {
        exception_if(!in_array($lang, self::$supported), LanguageNotSupportedException::class, $lang);

        Cookie::create(self::$cookieName, $lang, config('lang.lifetime'));
        Session::put(self::$sessionName, $lang);

        self::change($lang);

        return true;
    }