protected static function save_session()
    {
        $saved = [];

        $user = (array) static::$user;

        foreach ($user as $key => $value) {
            if (in_array($key, static::$saved)) {
                $saved[$key] = $value;
            }
        }

        $name = static::resource('session');

        Session::put($name, $saved, config('auth.cookie_lifetime'));

        return true;
    }