We have two tables room and room images. I am using relation in both tables and want to get the first image from room images table (For thumbnail). Below foreach loop is working fine on single detail page. Now i want to get the thumbnail image for main page.
@foreach ($room->tbl_roomimages as $single_img)
<img src="/storage/cover_images/" alt="">
@endforeach
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire