src/Settings/HasSettings.php
public function settings($passed = null)
    {
        if (is_array($passed)) {
            return $this->setSettings($passed);
        } elseif (!is_null($passed)) {
            $settings = $this->getSettingsInstance();

            return $settings->get($passed);
        }

        return $this->getSettingsInstance();
    }
public function settings($passed = null)
    {
        if (is_array($passed)) {
            return $this->setSettings($passed);
        } elseif (!is_null($passed)) {
            $settings = $this->getSettingsInstance();

            return $settings->get($passed);
        }

        return $this->getSettingsInstance();
    }
public function settings ( $ passed = null ) { if ( is_array ( $ passed ) ) { return $ this -> setSettings ( $ passed ) ; } elseif ( ! is_null ( $ passed ) ) { $ settings = $ this -> getSettingsInstance ( ) ; return $ settings -> get ( $ passed ) ; } return $ this -> getSettingsInstance ( ) ; }
If passed is string, get settings class for the resource or return value
for given key. If passed is array, set the key value pair.

@param string|array $passed

@return \LaravelPropertyBag\Settings\Settings|mixed
If passed is string get settings class for the resource or return value for given key . If passed is array set the key value pair .