Our API returns some images that have been uploaded, but for the public API, we'd like to hide the path attribute from the content and only include the url. Obviously we can filter this out manually, but was hoping there was a way to not return this. We've tried setting a $hidden on the model to no avail:
Our API returns some images that have been uploaded, but for the public API, we'd like to hide the
path
attribute from the content and only include the url. Obviously we can filter this out manually, but was hoping there was a way to not return this. We've tried setting a$hidden
on the model to no avail:Is there a simpler way to hide this attribute?