I have one page where everything works fine. I moved this page to another server (not localhost) but my symlink doesnt work. When I upload files, they are stored only in storage/app... but not in public/storage
When I delete folder: public/storage from local and also from server and run: php artisan storage:link it will write The "public/storage" directory already exists.
Also in routes I have Artisan::call('storage:link');
In env I have set FILESYSTEM_DRIVER=public
filesystem.php:
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'permissions' => [
'file' => [
'public' => 0664,
'private' => 0600,
],
'dir' => [
'public' => 0775,
'private' => 0700,
],
],
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
view:
<img src="{{ asset('storage/'.$image->full) }}" id="brandLogo" class="img-fluid" alt="img">
Code should be ok because at the other site I have the same code and it works. I have Laravel 5.8
Can you help me please?
root
in thepublic
array to'root' => 'storage'
– Josephstorage:link
in the server as you try but with nothing happen – Joseph