问题
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