config:cache is being duplicated
nguyentranchung opened this issue · comments
I created module core
{
"name": "Core",
"slug": "core",
"version": "1.0",
"description": "Core module. This is required module!"
}
then I create config core.php in app\Modules\Core\config\core.php
<?php
return [
'brand' => 'My Blog'
];
config('core') return:
array:1 [▼
"brand" => "My Blog"
]
This is no problem when I run: php artisan config:cache
and config('core') return:
array:1 [▼
"brand" => array:2 [▼
0 => "My Blog"
1 => "My Blog"
]
]
I try comment $this->loadConfigsFrom(__DIR__ . '/../config');
in app\Modules\Core\Providers\ModuleServiceProvider.php => no problem
ping @kaidesu
This is an important issue, is anyone like me?
@kaidesu I know you working hard, but I feel anxious every time I update composer