Config组件的扩展,它增加了写入配置文件的能力。

1.0.0 2017-03-01 09:41 UTC

This package is auto-updated.

Last update: 2024-09-21 02:58:14 UTC


README

Total Downloads

Config组件的扩展,它增加了写入配置文件的能力。兼容Laravel 5.2。

基于 [daftspunk/laravel-config-writer] (https://github.com/daftspunk/laravel-config-writer)

安装

将Laravel Config添加到您的 composer.json 文件

"astatroth/laravel-config": "~1.0"

然后运行 composer updatecomposer install

另一种方法是要求该包

composer require astatroth/laravel-config

接下来,将包服务提供者添加到您的 app/config.php

Astatroth\LaravelConfig\LaravelConfigServiceProvider::class,

这就完成了!

使用方法

使用方法非常简单

Config::write($key, $value);

祝您玩得开心! :)