src/Providers/ModulesServiceProvider.php
protected function registerConfig()
    {
        $path = realpath(__DIR__ . '/../../config/config.php');

        $this->mergeConfigFrom($path, "modules");

        $this->publishes([$path => config_path('modules.php')]);
    }
protected function registerConfig()
    {
        $path = realpath(__DIR__ . '/../../config/config.php');

        $this->mergeConfigFrom($path, "modules");

        $this->publishes([$path => config_path('modules.php')]);
    }
Register config.