I have uploaded a voyager admin panel in my cPanel.
It gives error Missing storage symlink
and 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',
],