在config/filesystems.php中添加:
‘disks’ => [
‘local’ => [
‘driver’ => ‘local’,
‘root’ => storage_path(‘app’),
],
‘public’ => [
‘driver’ => ‘local’,
‘root’ => storage_path(‘app/public’),
‘url’ => env(‘APP_URL’).’/storage’,
‘visibility’ => ‘public’,
],
‘s3’ => [
‘driver’ => ‘s3’,
‘key’ => env(‘AWS_KEY’),
‘secret’ => env(‘AWS_SECRET’),
‘region’ => env(‘AWS_REGION’),
‘bucket’ => env(‘AWS_BUCKET’),
],
‘admin’ => [
‘driver’ => ‘local’,
‘root’ => public_path(‘upload’),
‘visibility’ => ‘public’,
‘url’ => env(‘APP_URL’).’/public/upload/’,
],
],
原文:https://blog.csdn.net/guaiguaiknl/article/details/80332337
config/admin.php
config/filesystem.php
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/112801.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...