public function set($key, $value = null)
    {
        // Set the value on the contents
        $contents = (array) $this->getContents();
        if (is_array($key)) {
            $contents = $key;
        } else {
            Arr::set($contents, $key, $value);
        }

        $this->saveContents($contents);
    }