我在我的 cPanel 中上传了一个 voyager 管理面板。它给出了错误Missing storage symlink,并且没有显示新添加项目的图像。
假设我想添加一个新用户。显示新用户接受用户头像的所有信息。
通过运行 cmd 可以轻松修复本地错误php artisan storage:link。
但是在实时服务器中如何修复此错误?
我已经改变了storage driverin的路径config/filesystems.php。将路径从 更改storage_path()为public_path()
'public' => [
'driver' => 'local',
'root' => public_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],