niiwill's avatar

Display image from storage problem Laravel 8

I enter

php artisan storage:link

and after I upload the image and in the controller put:

if($request->hasFile('logo')){ $imgfile=$request->file('logo'); $custom_name = $company->user_id.'.'.$imgfile->getClientOriginalExtension(); $logo_path=$request->file('logo')->storeAs('logos', $custom_name); $company->logo_path=$logo_path; }

I can find all my images in the storage/app/logos folder

But I cant display than in view, whatever I have done, on the and they only sad 44 for that path.

0 likes
1 reply
jlrdw's avatar
jlrdw
Best Answer
Level 75

How are you displaying, have you tried the asset helper.

<img src="{{ asset('your/url') . '/' . $row->yourimg }}" alt="" class="image">
2 likes

Please or to participate in this conversation.