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!
但是还是没有用 真心求解呀!!!!!!!!!!!!!!