【TP5.1】Config的用法

版权声明:咔咔 来自https://blog.csdn.net/fangkang7 https://blog.csdn.net/fangkang7/article/details/83689654

需要读取某个一级配置的所有配置参数,可以使用

需要引入

use Config;

 

使用助手函数:
 

config('app.name')
config('app.');

这种类型的使用app.

这种类型的使用.code即可

 

猜你喜欢

转载自blog.csdn.net/fangkang7/article/details/83689654