src/Settings/HasSettings.php
public function defaultSetting($key = null)
    {
        if (!is_null($key)) {
            return $this->settings()->getDefault($key);
        }

        return $this->settings()->allDefaults();
    }
public function defaultSetting($key = null)
    {
        if (!is_null($key)) {
            return $this->settings()->getDefault($key);
        }

        return $this->settings()->allDefaults();
    }
public function defaultSetting ( $ key = null ) { if ( ! is_null ( $ key ) ) { return $ this -> settings ( ) -> getDefault ( $ key ) ; } return $ this -> settings ( ) -> allDefaults ( ) ; }
Get all default settings or default setting for single key if given.

@param string $key

@return \Illuminate\Support\Collection|mixed
Get all default settings or default setting for single key if given .