php - how to display images saved in database with laravel 8?

Solution:

if you dont have any problem with storing the data and storage is linked with public path properly, you can write something like this to get the image from storage..

<img src="{{ url('storage/services/'.$service->image) }}" alt=""/>

Answer

Solution:

first of all to access img or any file from storage, you have link storage with public folder...

php artisan storage:link

using above command it will create shortcut of storage in public folder.

then for display images you can using as like below

<img src="{{ asset('storage/services'.$service->image) }}" alt="" />

Source