sethsandaru / laravel-hmvc-sample

Sample project, building a HMVC structure for Laravel 5,6,7,8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

config files

amirsobhani opened this issue · comments

Instead of manually introducing the Config files, it is enough to add the following code:
if (File::exists($modulePath . "Configs")) { foreach (Finder::create()->in($modulePath . 'Configs')->name('*.php') as $file) { $this->mergeConfigFrom( $file->getRealPath() , basename($file->getRealPath(), '.php') ); } }