dreadkopp/laravel-configured
最新稳定版本:0.1.0
Composer 安装命令:
composer require dreadkopp/laravel-configured
包简介
access only configured config values
README 文档
README
With Laravel 11 by default configurations are merged from framework.
This might introduce some unexpected behavior since i.e. Config::get('database.connections') will now return not only the explicitly configured connections but also a lot of defaults from the framework.
same for a handful of other configs.
While one could use a workaround by patching the bootstrap/app.php and calling $app->dontMergeFrameworkConfiguration() this package tries to provide a less intrusive approach, by registering a second config repository which only contains values configured via config files in the ./config directory.
Both a Facade ( Dreadkopp\LaravelConfigured\Facades\Configured ) as well as a helper-function ( configured() ) are provided which behave the same way as their original implementations ( Config || config() ) minus the set-functionality
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-12-30