public static function remembered(Request $request)
    {
        $remember = readCookie($request, 'remember_token');
        if ($remember != null) {
            try {
                $decrypted = decrypt($remember);
                $authConfig = getConfigPath('app', 'auth');

                return Gate::user($authConfig, $decrypted);
            } catch (Exception $ex) {
                return false;
            }
        }

        return false;
    }