動態(tài)配置

設(shè)置配置參數(shù)

使用set方法動態(tài)設(shè)置參數(shù),例如:

Config::set('配置參數(shù)','配置值');
// 或者使用助手函數(shù)
config('配置參數(shù)','配置值');

也可以批量設(shè)置,例如:

Config::set([
    '配置參數(shù)1'=>'配置值',
    '配置參數(shù)2'=>'配置值'
]);
// 或者使用助手函數(shù)
config([
    '配置參數(shù)1'=>'配置值',
    '配置參數(shù)2'=>'配置值'
]);
文檔最后更新時間:2018-04-25 18:06:38

文檔
目錄

深色
模式

切換
寬度