src/ModuleProvider.php
protected function registerConfig()
    {
        $path = $this->module->getPath('config/config.php');

        if (is_file($path)) {
            $this->mergeConfigFrom($path, "module.{$this->module->getName()}");

            $this->publishes([$path => config_path("module/{$this->module->getName()}.php")]);
        }
    }
protected function registerConfig()
    {
        $path = $this->module->getPath('config/config.php');

        if (is_file($path)) {
            $this->mergeConfigFrom($path, "module.{$this->module->getName()}");

            $this->publishes([$path => config_path("module/{$this->module->getName()}.php")]);
        }
    }
Register config.