Media Module - filesByZone() & files() returning empty array.

  • Hi,

    I'm getting an empty array when calling $entity->filesByZone('slider_images')->get();

    Even though, I have passed the right zone into the parameters.

    I looked into the MediaRelation Traits and realised an issue with the morphToMany. But still don't know what is going on. Might there be anything i'm overlooking?

    My @mediaMultiple can return the relevant media into its view. But if I call the filesByZone independently to populate my frontend, I seem to get an empty array.

  • Sorry, got it solved!

Log in to reply

Looks like your connection to AsgardCms was lost, please wait while we try to reconnect.