The configuration file is not being applied correctly
In `MinifyServiceProvider` in the code:
```php
public function registerConfig()
{
$this->mergeConfigFrom(__DIR__.'/../config/minify.php', 'minify.php');
}
```
It's wrong and it should be:
```php
public function registerConfig()
{
$this->mergeConfigFrom(__DIR__.'/../config/minify.php', 'minify');
}
```
If you use `minify.php`, to access the configuration variables you need write `config('minify.php.something')` instead of `config('minify.something')`


关闭于 2025-02-23 2 条评论