public function loadToConfig($path, $configKey)
    {
        $loaded = $this->cleanArrayKeysRecursive(
            $this->file->isYamlFile($path)
                ? $this->loadFile($path)
                : $this->loadFromDirectory($path)
        );

        return $this->resolver->findAndReplaceExecutableCodeToExhaustion($loaded, $configKey);
    }
public function loadToConfig($path, $configKey)
    {
        $loaded = $this->cleanArrayKeysRecursive(
            $this->file->isYamlFile($path)
                ? $this->loadFile($path)
                : $this->loadFromDirectory($path)
        );

        return $this->resolver->findAndReplaceExecutableCodeToExhaustion($loaded, $configKey);
    }
public function loadToConfig ( $ path , $ configKey ) { $ loaded = $ this -> cleanArrayKeysRecursive ( $ this -> file -> isYamlFile ( $ path ) ? $ this -> loadFile ( $ path ) : $ this -> loadFromDirectory ( $ path ) ) ; return $ this -> resolver -> findAndReplaceExecutableCodeToExhaustion ( $ loaded , $ configKey ) ; }
Load yaml files from directory and add to Laravel config.

@param string $path
@param string $configKey

@return Collection
Load yaml files from directory and add to Laravel config .