you saved it to public/services and you try to access it on storage/images
Mar 31, 2018
5
Level 1
Unable to access and display image i uploaded to the storage folder
Greetings, I uploaded image to the storage/services folder of my laravel5.4 app. The code that stored it:
$image = request()->file('image'); $ext = $image->guessClientExtension(); $filename = '_'.$service->id.$title.'.'.$ext; $image->storeAs('public/services/', $filename); it went through cos I can see it when I navigate to the folder.
I have tried the following ways to access it: created a symlink thus: php artisan storage:link img src="{{ url('storage/images/'.$article->image) }}" alt="" title="" /> but it didn't work. what did I not do right?
Pls I need help. Thank you.
Please or to participate in this conversation.