Get the settings configuration file.

@param $name

@return mixed
776925
private function getConfigFor($name)
    {
        list($module, $settingName) = explode('::', $name);

        $result = [];
        foreach (config("society.$module.settings") as $sub) {
            $result = array_merge($result, $sub);
        }

        return Arr::get($result, "$settingName");
    }
83634
public function hasConfigFile($name)
    {
        $filename = $this->getConfigFilename($name);
        return is_file($filename) && is_readable($filename);
    }
345334
protected function getConfig($name)
	{
		$name = $name ?: $this->getDefaultConnection();

		// To get the database connection configuration, we will just pull each of the
		// connection configurations and get the configurations for the given name.
		// If the configuration doesn't exist, we'll throw an exception and bail.
		$connections = $this->app['config']['database.connections'];

		if (is_null($config = array_get($connections, $name)))
		{
			throw new InvalidArgumentException("Database [$name] not configured.");
		}

		return $config;
	}
589458
public function getConfig(string $name = null)
    {
        return (null !== $name)
            ? $this->_config->get($name)
            : $this->_config;
    }
920215
public function getConfig($name) {
        $data = $this->get($name);
        if ($data === null) {
            return null;
        }
        if (isset($this->data['global'])) {
            $data['global'] = $this->data['global'];
        }
        $config = new self();
        $config->load($data);
        return $config;
    }
768861
public function &get($name)
    {
        if (!isset($this->mergedSettings[$name])) {
            $this->mergedSettings[$name] = array();
        }

        $result =& $this->mergedSettings[$name];
        return $result;
    }
1273106
public function getSetting($name, $key = null)
	{
		if( isset($this->_settings[$name]) )
		{
			if($key)
			{
				if(isset($this->_settings[$name][$key]))
				{
					return $this->_settings[$name][$key];
				}
			}
			else
			{
				return $this->_settings[$name];
			}
		}
		return null;
	}
530232
public function get($name)
    {
        $item = $this->getItemPath($name);

        return $this->config->get($item);
    }
68812
public function get_setting($name, $default = false) {
        try {
            return $this->controller->get_plan()->get_setting($name);
        } catch (Exception $e) {
            debugging('Failed to find the setting: '.$name, DEBUG_DEVELOPER);
            return $default;
        }
    }
531546
public function get(string $name, $default = null)
    {
        if (!isset($this->configs[$name])) {
            $this->set($name, $default);
        }
        return $this->configs[$name];
    }
1262487
public function getSetting($name)
    {
        return ! empty($this->settings[$name]) ? $this->settings[$name] : null;
    }
484162
public function getCalendarConfig($name = null)
    {
        if (!is_null($name)) {
            return isset($this->calendarConfig[$name]) ? $this->calendarConfig[$name] : null;
        }
        
        return $this->calendarConfig;
    }
1286342
public function get($name, $default = null)
	{
		if ( substr($name, -1) == '.' ) {
			$ret = array();

			foreach ( $this->settings as $setting_name => $setting_value ) {
				if ( preg_match('/^' . preg_quote($name, '/') . '/', $setting_name) ) {
					$ret[$setting_name] = $setting_value;
				}
			}

			return $ret;
		}

		return array_key_exists($name, $this->settings) ? $this->settings[$name] : $default;
	}
470559
protected static function getSettingsBlock($name)
	{
		return self::getSettingsItem(
			self::$_settingsBlock,
			self::p2mSettings(),
			$name, false
		);
	}
973871
public function getOption($name){
        return (isset($this->configOptions->{$name})) ? $this->configOptions->{$name} : false;    
    }
626239
protected function getConfigFile($name = 'app')
    {
        $env = $this->option('env') ? $this->option('env').'/' : '';

        $name .= '.php';

        $contents = File::get($path = $this->laravel['path.config']."/{$env}{$name}");

        return $path;
    }
1280548
public function get($name, $default = null, $file = null) {
            $configVal = null;

            if(is_array($this->config)) {
                if($file === null) {
                    if(count(array_column($this->config, $name)) > 0) {
                        $configVal = array_column($this->config, $name)[0];
                    } else {
                        $configVal = array_column($this->config, $name);
                    }
                } else {
                    if(count(array_column($this->config->$file, $name)) > 0) {
                        $configVal = array_column($this->config->$file, $name)[0];
                    } else {
                        $configVal = array_column($this->config->$file, $name);
                    }
                }
            }

            if(empty($configVal)) {
                return $default;
            }

            return $configVal;
        }