$this->mergeConfigFrom(__DIR__ . '/../resources/config/core.php', 'streams.core');
Perfect. It merges config relative to the current class.
if (file_exists($config = __DIR__ . '/../../../../config/streams/core.php')) {
$this->mergeConfigFrom($config, 'streams');
}
```php
This seems to be a attempt to load config from the root `config` folder. This already is done by the bootstrapper which recursively works. The namespace is off aswell. This is the line i think needs to be removed. Once the config file is published to `config/streams/core.php` the bootstrapper will load the `config` folder. any config file inside a folder will be getting prefixed with the folders name in the eventual config array.
Suggestion: remove line
I'll go over each line of code;
$this->mergeConfigFrom(__DIR__ . '/../resources/config/core.php', 'streams.core');
Perfect. It merges config relative to the current class.