I'm trying to show the default.jpg avatar picture in my Laravel 5.4 profile.blade.php
.
php artisan storage:link
. src="/public/storage/uploads/avatar/default.jpg"
But still no image could be found. Could someone explain to me what I am missing?
You can use this in the view once the storage link is present:
<img src="{{ asset('storage/uploads/avatar/default.jpg') }}" alt="" />
That will generate the full asset url to your image.
remove public
from path and image will be shown if you set correct link
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With