Getting Model Without Media (solved) #2243
Unanswered
rodriguezaitor
asked this question in
Q&A
Replies: 1 comment
-
Closed. I'm quite stupid, just needed to add it to the hidden properties of the model. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Is there any way to get a model without the media?
public function index() { $data = School::paginate(100); return RB::success($data); }
This returns the School model but it ads a the media at the end:
Beta Was this translation helpful? Give feedback.
All reactions