Skip to content
Advertisement

display images from database to blade in laravel

I have a database where images are stored in the table row like this:

JavaScript

image1 and image2 are stored in the “public/storage/image” folder

JavaScript

In blade I am able to do a $tests->name and $tests->description to get data successfully.

I am unable to figure out how to display images from “filenames” blade.

Advertisement

Answer

You can do like so:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement