I figured it out this is what I did to solve it. Instead of having
$gallery_test = $category->gallery()
->select('gallery.title', 'gallery.image')
->lists('title', 'image');
I did this
$gallery_test = $category->gallery()->get();
So I was now able to get these details
@foreach($gallery_test as $gallery)
{{$gallery->title}}
{{$gallery->image}}
{{$gallery->content}}
@endforeach
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community