public function get($name, $default = null)
    {
        if (! str_contains($name, '::')) {
            throw new InvalidArgumentException("Setting key must be in the format '[module]::[setting]', '$name' given.");
        }

        $defaultFromConfig = $this->getDefaultFromConfigFor($name);

        if ($this->setting->has($name)) {
            return $this->setting->get($name);
        }

        return is_null($default) ? $defaultFromConfig : $default;
    }
public function get($name, $default = null)
    {
        if (! str_contains($name, '::')) {
            throw new InvalidArgumentException("Setting key must be in the format '[module]::[setting]', '$name' given.");
        }

        $defaultFromConfig = $this->getDefaultFromConfigFor($name);

        if ($this->setting->has($name)) {
            return $this->setting->get($name);
        }

        return is_null($default) ? $defaultFromConfig : $default;
    }
public function get ( $ name , $ default = null ) { if ( ! str_contains ( $ name , '::' ) ) { throw new InvalidArgumentException ( "Setting key must be in the format '[module]::[setting]', '$name' given." ) ; } $ defaultFromConfig = $ this -> getDefaultFromConfigFor ( $ name ) ; if ( $ this -> setting -> has ( $ name ) ) { return $ this -> setting -> get ( $ name ) ; } return is_null ( $ default ) ? $ defaultFromConfig : $ default ; }
Getting the setting.

@param string $name
@param string $locale
@param string $default

@return mixed
Getting the setting .