public function get($name, $default = null)
    {
        try {
            if ($setting = $this->model->where('name', '=', $name)->first()) {
                return $this->castSetting($name, $setting->value);
            }

            return $default;
        } catch (Exception $e) {
            throw new ReadException($e);
        }
    }
public function get($name, $default = null)
    {
        try {
            if ($setting = $this->model->where('name', '=', $name)->first()) {
                return $this->castSetting($name, $setting->value);
            }

            return $default;
        } catch (Exception $e) {
            throw new ReadException($e);
        }
    }
public function get ( $ name , $ default = null ) { try { if ( $ setting = $ this -> model -> where ( 'name' , '=' , $ name ) -> first ( ) ) { return $ this -> castSetting ( $ name , $ setting -> value ) ; } return $ default ; } catch ( Exception $ e ) { throw new ReadException ( $ e ) ; } }
Get a setting, or the default value.

@param string $name
@param mixed  $default

@throws \CachetHQ\Cachet\Settings\ReadException

@return mixed
Get a setting or the default value .