動態(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
未解決你的問題?請到「問答社區(qū)」反饋你遇到的問題