public function save(array $params = [])
    {

        $index      = array_get($params, 'index');
        $visibility = array_get($params, 'visible');
        $key        = array_get($params, 'key');

        if (is_null($index) or is_null($visibility) or is_null($key)) {
            return false;
        }
        $request = request();
        $session = $request->session();

        if ($session->has($key)) {
            $data         = $session->get($key);
            $data[$index] = $visibility === "true";
            $session->remove($key);
        } else {
            $data = [$index => $visibility === "true"];
        }
        $session->put($key, $data);
        $session->save();
        return $data;
    }