Hi i am moving my local Laravel images to aws when I retrieve the local files it brings back the file correctly however when i retrieve the aws file it comes back as serialized
this is my function i have to retrieve images

The first if block where it return the images comes back as an image:
However when I retrieve the file and return it from AWS it comes back as:
Am I retrieving the image from aws wrong, still new to this :D.

