I keep getting this error “Cannot access offset of type string on string” whenever I try to serve dummy data to my Laravel application
I am trying to serve some data to my view. However, when i try to access the elements in my dummy array, i keep getting an error “Cannot access offset of type string on string”. And I don’t know what is causing this error. I’m quite new to PHP so I need assistance.
if the product has multiple images from the image table that shows it, and if it does not exist
How can I do condition if the product has multiple images from the image table that shows it, and if it does not exist, it appears empty