I'm a dumbass. Of course it returns error while in the loop. One of the product doesn't have an image!!
And here I thought there's something wrong with my use of first() or some rule my newbie self don't know about.
sigh.
thanks, posting like this has been therapeutic.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community