protected function registerConfig()
    {
        // Config options
        $configIndex = FileConfig::FILE_NAME;
        $configFileName = FileConfig::FILE_NAME.'.php';
        $configPath = __DIR__.'/../../config/'.$configFileName;

        // Publish the config
        $this->publishes([
            $configPath => config_path($configFileName),
        ]);

        // Merge the default config to prevent any crash or unfilled configs
        $this->mergeConfigFrom(
            $configPath,
            $configIndex
        );

        return $this;
    }
protected function registerConfig()
    {
        // Config options
        $configIndex = FileConfig::FILE_NAME;
        $configFileName = FileConfig::FILE_NAME.'.php';
        $configPath = __DIR__.'/../../config/'.$configFileName;

        // Publish the config
        $this->publishes([
            $configPath => config_path($configFileName),
        ]);

        // Merge the default config to prevent any crash or unfilled configs
        $this->mergeConfigFrom(
            $configPath,
            $configIndex
        );

        return $this;
    }
protected function registerConfig ( ) { // Config options $ configIndex = FileConfig :: FILE_NAME ; $ configFileName = FileConfig :: FILE_NAME . '.php' ; $ configPath = __DIR__ . '/../../config/' . $ configFileName ; // Publish the config $ this -> publishes ( [ $ configPath => config_path ( $ configFileName ) , ] ) ; // Merge the default config to prevent any crash or unfilled configs $ this -> mergeConfigFrom ( $ configPath , $ configIndex ) ; return $ this ; }
Publishes and mergers the config. Uses the FileConfig. Registers custom handlers.

@see FileConfig
@see ServiceProvider::publishes
@see ServiceProvider::mergeConfigFrom

@return $this
Publishes and mergers the config . Uses the FileConfig . Registers custom handlers .