error `Missing storage symlink` for voyager admin

2019-08-03 23:44发布

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',
],

2条回答
成全新的幸福
2楼-- · 2019-08-04 00:04

FIXED !!

Delete public/storage folder and run the command in cmd

php artisan storage:link

查看更多
迷人小祖宗
3楼-- · 2019-08-04 00:14

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

查看更多
登录 后发表回答