wap的config.php配置不生效,config :set 设置之后不生效!!!!!!!!!!!!!!...

Route::get('/',function (){

//原始目录

//读取配置  c:wamp/www/lv5

var_dump(Config::get('filesystems.disks.local.root'));

// 读取默认 local 目录下的目录

var_dump(Storage::directories());

//设置之后目录

//设置配置 c:wamp/www/lv5/app

Config::set('filesystems.disks.local.root',Config::get('filesystems.disks.local.root').'\app');

//读取设置之后目录的配置

var_dump(Config::get('filesystems.disks.local.root'));

//读取设置之后目录下的目录

var_dump(Storage::directories());

});

但是接结果去不是那样!!!

string 'C:\wamp\www\lv5' (length=15)

array (size=9)

0 => string 'app' (length=3)

1 => string 'bootstrap' (length=9)

2 => string 'config' (length=6)

3 => string 'database' (length=8)

4 => string 'public' (length=6)

5 => string 'resources' (length=9)

6 => string 'storage' (length=7)

7 => string 'tests' (length=5)

8 => string 'vendor' (length=6)

string 'C:\wamp\www\lv5\app' (length=19)

array (size=9)

0 => string 'app' (length=3)

1 => string 'bootstrap' (length=9)

2 => string 'config' (length=6)

3 => string 'database' (length=8)

4 => string 'public' (length=6)

5 => string 'resources' (length=9)

6 => string 'storage' (length=7)

7 => string 'tests' (length=5)

8 => string 'vendor' (length=6)

随后清除 cach ,config

c:\wamp\www\lv5>php artisan config:clear

Configuration cache cleared!

c:\wamp\www\lv5>php artisan cach:clear

Application cache cleared!

但是还是没有用 真心求解呀!!!!!!!!!!!!!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值