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

        return $this->settings()->allAllowed();
    }
public function allowedSetting($key = null)
    {
        if (!is_null($key)) {
            return $this->settings()->getAllowed($key);
        }

        return $this->settings()->allAllowed();
    }
public function allowedSetting ( $ key = null ) { if ( ! is_null ( $ key ) ) { return $ this -> settings ( ) -> getAllowed ( $ key ) ; } return $ this -> settings ( ) -> allAllowed ( ) ; }
Get all allowed settings or allowed settings for single ke if given.

@param string $key

@return \Illuminate\Support\Collection
Get all allowed settings or allowed settings for single ke if given .