The project is running fine on local but on web server (running on sub domain) when I created symlink using php artisan storage:link
or even ln -s full_path/storage/app/public full_path/public/storage
through ssh, the symlink got created but I still can't access images inside my storage/app/public without "app/public"
eg: I can access http://xyz.abc.com/storage/app/public/35/conversions/retro1-thumb.jpg
but I can't access http://xyz.abc.com/storage/35/conversions/retro1-thumb.jpg
What I have already tried:
- Deleted storage and ran
php artisan storage:link
- no help - Updated htaccess to follow symlink in root and public - no help
- Run
php artisan config:clear
,php artisan config:cache
,php artisan cache:clear
- no help - Updated config/filesystem.php with real path as storage and url - no help
- Approached host support - no help
- Did extensive google search - no help
Here's my config/filesystems.php disk conf-
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'),
],
],
Hope it can be resolved.