How to retrieve file from Laravel storage subfolder?

Advertisements I’m trying to retrieve a file from this path in a laravel project: /storage/app/public/blog/3.jpg These approaches produce following errors: 1. $image = Storage::disk(‘public’)->get(‘/storage/blog/3.jpg’); -> local.ERROR: File not found at path: storage/blog/3.jpg {"userId":16,"exception":"[object] (Illuminate\\Contracts\\Filesystem\\FileNotFoundException(code: 0): File not found at path: storage/blog/3.jpg at /Users/artur/PhpstormProjects/safa-ameedee.com/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemAdapter.php:171) [stacktrace] $image = Storage::disk(‘public’)->get(‘/storage/app/public/blog/3.jpg’); $image = Storage::get(‘/storage/app/public/blog/3.jpg’); -> local.ERROR: File not found… Read More How to retrieve file from Laravel storage subfolder?

Laravel storage link keep redirected to /public directory in hosting

Advertisements I’m using a hosting service to upload my laravel project and link it to laravel’s public directory using php header location in laravel’s root directory. Then I created a storage link in public directory using symlink or artisan command, but when I’m trying to access the files it always redirected to /public, I wonder… Read More Laravel storage link keep redirected to /public directory in hosting