Add Configuration to the group list

@param string $key
@return \AvoRed\Framework\AdminConfiguration\AdminConfiguration $adminConfiguration
355157
public function addConfiguration($key)
    {
        $adminConfiguration = new AdminConfiguration();

        $adminConfiguration->key($key);
        $this->groupList->put($key, $adminConfiguration);

        return $adminConfiguration;
    }
207996
public function config($key, $value)
    {
        $this->arguments[] = '--config';
        $this->arguments[] = $key . '=' . $value;
        return $this;
    }
303428
public function orderBy($key, $order='asc')
    {
        if ($this->isConfigKey($key) && $this->addedJoinsCounter != 0) {
            $this->query->orderBy('config.'.$this->configQueryKey($key), $order);
            return $this;
        }

        $this->query->orderBy($key, $order);
        return $this;
    }
862874
final protected function getConfigValue(string $key)
    {
        $retval = false;

        if (isset($this->config[$key], $this->config[$key][ConfigurationInterface::KEY_VALUE])) {
            $retval = $this->config[$key][ConfigurationInterface::KEY_VALUE];
        } elseif (isset($this->config[$key])) {
            $retval = $this->config[$key];
        }

        return $retval;
    }
1247746
public function expandMiddlewareGroup( $group ) {
		if ( ! isset( $this->middleware_groups[ $group ] ) ) {
			throw new ConfigurationException( 'Unknown middleware group "' . $group . '" used.' );
		}

		$middleware = $this->middleware_groups[ $group ];

		if ( in_array( $group, $this->middleware_groups_with_global, true ) ) {
			$middleware = array_merge( ['global'], $middleware );
		}

		return $this->expandMiddleware( $middleware );
	}
1248433
public static function get( $key = null ) {
		$configs = self::$configs;
		if ( $key ) {
			$configs = ! empty( self::$configs[ $key ] ) ? self::$configs[ $key ] : null;
		} else {
			$configs = self::$configs;
		}

		return $configs;
	}
906137
public function loadFromConfig($key)
    {
        $items = new IlluminateCollection(config()->get($key, []));

        if ($items->isEmpty()) return $this;

        $allHasConfig = $items->every(function ($item) {
            return config()->has($item);
        });

        if ($allHasConfig) {
            $items->each(function ($item) {
                $this->loadFromConfig($item);
            });

            return $this;
        }

        return $this->add($items->toArray());
    }
17052
public function getConfig($key)
  {
    if (empty($key)) {
      return '';
    }

    $keys  = explode('.', $key);
    $value = array();

    if (isset($this->config[$keys[0]])) {
      $value = $this->config[$keys[0]];
    }

    if (empty($value)) {
      return $value;
    }

    $totalKey = count($keys);

    if ($totalKey > 1) {
      for ($i = 1; $i < $totalKey; ++$i) {
        if (isset($value[$keys[$i]])) {
          $value = $value[$keys[$i]];
        }
      }
    }

    unset($keys);

    return $value;
  }
1006253
public function get($key)
    {
        $key = is_array($key) ? $key : [$key];
        $config = $this->data;
        while ($key) {
            $k = array_shift($key);
            $config = isset($config[$k]) ? $config[$k] : [];
        }
        return $config;
    }
332514
public function group_by( $key ) 
	{
		if ( !is_array( $key ) )
		{
			$key = array( $key );	
		}
		
		foreach( $key as $group_key )
		{
			$this->groups[] = $group_key;
		}
		
		return $this;
	}
423014
public function getConfig($key)
    {
        if (!isset($this->config[$key])) {
            throw new \Exception(sprintf('No config found for key: "%s"', $key));
        }

        return $this->config[$key];
    }
538339
public function config($key)
    {
        $splitKey = explode('.', $key);

        $moduleConfig = include __DIR__.'/../PublishedAssets/Config/'.$splitKey[0].'.php';

        $strippedKey = preg_replace('/'.$splitKey[1].'./', '', preg_replace('/'.$splitKey[0].'./', '', $key, 1), 1);

        return $moduleConfig[$strippedKey];
    }
388761
public function getConfiguration($key = null)
	{
		if(is_null($key))
		{
			return $this->configuration + $this->core['configuration'];
		}

		$configuration = $this->configuration + $this->core['configuration'];

		if(array_key_exists($key, $configuration))
		{
			return $configuration[$key];
		}

		return null;
	}
26379
protected function _addKey($key)
    {
        if ($key == '__stored_keys__') {
            return $this;
        }

        $keys = $this->get('__stored_keys__', []);
        if (!in_array($key, $keys)) {
            array_push($keys, $key);
        }
        $this->set('__stored_keys__', $keys, 24*60*60);
        return $this;
    }
397443
public function hasConfigurationKey($key)
    {
        $result = true;
        $configuration = $this->getConfiguration();

        $pathParts = explode(self::DELIMITER, $key);
        foreach ($pathParts as $pathPart) {
            if (array_key_exists(ucfirst($pathPart), $configuration) === false) {
                $result = false;
                break;
            } else {
                $configuration = $configuration[ucfirst($pathPart)];
            }
        }

        return $result;
    }
604645
public static function getConfig($key)
    {
        return isset(self::$connectionConfig[$key]) ? self::$connectionConfig[$key] : null;
    }
1321710
public function setKey($key)
    {
        $this->key = $key;

        // Initialize if we're the first instance.
        if (! session()->has('bzarzuela.filters')) {
            session(['bzarzuela.filters' => [$key => []]]);
        }

        return $this;
    }