#relation not working
1 messages · Page 1 of 1 (latest)
How are you trying to retrieve the relation?
.... if you already have the $fileId why not just call MediaFile::find($fileId)?
just ignore it i need to rewrite it i dont have it ahhahahah
imagine there is only $mediafile = $course->mediafile()
mediaFile() doesn't exist though. Your relation is mediaFiles?
i dont get anything i try to retrieve mediafiles from the relation but i dont get it
this works