Description
Description
Laravel provides a root "config" folder which contains configuration files, or sub-folders containing configuration files. Config files return arrays containing keys and related data.
A file in the "root" config called "package.php" folder may look something like this:
return [ 'settings'=> [ 'setting_1'=>'something', ], ];
This can be accessed in Laravel by using the following:
$setting_1 = config("package.settings.setting_1");
Alternatively, a file called "settings.php" could be placed in a folder "config/package/" which would look as follows:
return [ 'setting_1'=>'something', ];
It would be accessed in exactly the same way:
$setting_1 = config("package.settings.setting_1");
Actual behavior
Configuration files in each tenant's config folder are parsed, and overwrite settings in the configuration obtained from the application's root config folder and it's sub-folders, but configuration files placed in sub-folders in each tenant's config folder are ignored.
Expected behavior
Configuration files placed in sub-folders in each tenant's config folder should be parsed, and overwrite settings in the configuration obtained from the application's root config folder and it's sub-folders.
Information
- tenancy/tenancy version: 5.2.7
- laravel version: 5.7
- database driver and version: MySQL 5.7.25
- webserver software and version: Apache
- php version: 7.3
tenancy.php config
Error log