cPanel中的voyager管理面板错误`缺少存储符号链接'

raf*_*aff 2 cpanel laravel voyager

我已经在cPanel中上载了航海家管理面板。它给出了错误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',
],
Run Code Online (Sandbox Code Playgroud)

Ara*_*man 5

已修正!

删除public/storage文件夹并在cmd中运行命令

php artisan storage:link