芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/portpulselogistics.com/app/Providers/ModuleServiceProvider.php
registerConfig(); } } protected function registerConfig() { $modules = array_map('basename', File::directories(base_path('Modules')) ); foreach ($modules as $module) { $moduleNameLower = strtolower($module); $config_path = base_path("Modules/{$module}/Config/config.php"); $config_exists = file_exists($config_path); if ($config_exists) { $this->publishes([ $config_path => config_path("module_{$moduleNameLower}.php"), ], 'config'); $this->mergeConfigFrom( $config_path, "module_{$moduleNameLower}" ); } } } }