laravel软连接访问文件失效解决办法php artisan storage:link
问题:linux下执行php artisan storage:link错误:The "public/storage" directory already exists.laravel访问图片和文件失效404问题因为是linux所以第一时间想到linux下的软连接问题ln -snf /www/wwwroot/backend.lgzhb.com/default/storage/app/public/*
·
问题:linux下执行php artisan storage:link
错误:The "public/storage" directory already exists.
laravel访问图片和文件失效404问题
因为是linux所以第一时间想到linux下的软连接问题
ln -snf /www/wwwroot/backend.lgzhb.com/default/storage/app/public/* /www/wwwroot/backend.lgzhb.com/default/public/storage
前面路径是根目录下 storage/app/public 后面是 根目录下public/storage
最后文件访问正常
更多推荐
已为社区贡献2条内容
所有评论(0)