You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just spent an embarrassing amount of time figuring out why I wasn't able to retrieve an image for just one particular model. I'd previously set this model up rolling my own media management. This included a media column in the database where I was storing the path to the stored media.
The InteractsWithMedia trait makes various references to $this->media. This was where the retrieval of media was silently failing.
Just FYI :)
Might want to consider adding a line to the docs for "Preparing your model" that warns of this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Just spent an embarrassing amount of time figuring out why I wasn't able to retrieve an image for just one particular model. I'd previously set this model up rolling my own media management. This included a
media
column in the database where I was storing the path to the stored media.The
InteractsWithMedia
trait makes various references to$this->media
. This was where the retrieval of media was silently failing.Just FYI :)
Might want to consider adding a line to the docs for "Preparing your model" that warns of this?
Beta Was this translation helpful? Give feedback.
All reactions