/** * Returns a single option by its name. * * You can pass an optional default value (Default: null) * * @param string $name the name of the option to return * @param mixed $defaultValue the default value if the option is not set (Default: null) * * @return mixed */ public function getOption($name, $defaultValue = null) { if (strstr($name, '.')) { return Config::get($name, $this->options, $defaultValue); } return isset($this->options[$name]) ? $this->options[$name] : $defaultValue; }