protected function getConfigHelper()
    {
        $config_file = $this->getConfigFile();

        if (!file_exists($config_file)) {
            throw new \Exception('Config file not found.');
        }

        return new \Illuminate\Config\Repository(array('elasticquent' => require($config_file)));
    }
protected function getConfigHelper()
    {
        $config_file = $this->getConfigFile();

        if (!file_exists($config_file)) {
            throw new \Exception('Config file not found.');
        }

        return new \Illuminate\Config\Repository(array('elasticquent' => require($config_file)));
    }
protected function getConfigHelper ( ) { $ config_file = $ this -> getConfigFile ( ) ; if ( ! file_exists ( $ config_file ) ) { throw new \ Exception ( 'Config file not found.' ) ; } return new \ Illuminate \ Config \ Repository ( array ( 'elasticquent' => require ( $ config_file ) ) ) ; }
Inject given config file into an instance of Laravel's config

@throws \Exception when the configuration file is not found
@return \Illuminate\Config\Repository configuration repository
Inject given config file into an instance of Laravel s config