error `Missing storage symlink` for voyager admin panel in cPanel

好久不见. 提交于 2019-12-24 02:04:50

问题


I have uploaded a voyager admin panel in my cPanel. It gives error Missing storage symlinkand images are not shown of new added item.

Suppose I want to add a new user. All information is shown of new user accept user avatar.

In locally error is easily fixed by running the cmd php artisan storage:link.

But in live server how to fixed this error ?

I have already change the path of storage driver in config/filesystems.php. Change the path from storage_path() to public_path()

'public' => [
    'driver' => 'local',
    'root' => public_path('app/public'),
    'url' => env('APP_URL').'/storage',
    'visibility' => 'public',
],

回答1:


FIXED !!

Delete public/storage folder and run the command in cmd

php artisan storage:link




回答2:


It is a path related problem. I have changed the App_url in my .env file. Now it's successfully showing the image.



来源:https://stackoverflow.com/questions/49145262/error-missing-storage-symlink-for-voyager-admin-panel-in-cpanel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!