microweber-packages/laravel-config-extended
Composer 安装命令:
composer require microweber-packages/laravel-config-extended
包简介
Config rewrite for Laravel. Allows to save key and values in config files.
README 文档
README
Config class to use in Microweber CMS for Laravel. It allows saving of the config file.
Installation
Use composer to install the package:
composer require microweber-packages/laravel-config-extended
Usage
The Laravel Extended Config package extends Laravel's default configuration system by adding a save method. This allows you to persistently save configuration changes. Here's a basic example:
use Illuminate\Support\Facades\Config; // Set a value Config::set('app.name', 'New App Name'); // Save the changes Config::save(['app']);
In this example, the app.name configuration value is changed and then saved. The save method takes an array of configuration files to save. In this case, it saves the app configuration file.
Testing
Run the tests with:
composer test
统计信息
- 总下载量: 33.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-29