ITADN

The configuration file is not being applied correctly

#30Closedmcolominas 创建于 2025-01-31
M
mcolominascommented
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')` ![Image](https://github.com/user-attachments/assets/265de146-0e72-48a1-a313-984aec366441) ![Image](https://github.com/user-attachments/assets/ef7e16bc-e69b-464a-9b8f-e048ca960a69)
关闭于 2025-02-23 2 条评论