src/Rocketeer/Services/Storages/Storage.php
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);
    }
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);
    }
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 ) ; }
Set a value in storage.

@param string|array $key
@param mixed|null   $value
Set a value in storage .