make query on array of object #2479
Answered
by
Giacomo92
AliAmini78
asked this question in
Q&A
-
At my model there's a field that represents an array of object, actually are instoke of my record, for example:
I would retrieve all record that " warehouse=A and qty > 50 " . |
Beta Was this translation helpful? Give feedback.
Answered by
Giacomo92
Dec 19, 2022
Replies: 1 comment 1 reply
-
Hi @AliAmini78 , |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AliAmini78
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @AliAmini78 ,
Have you tried this query?
Model::where('instock.warehouse', 'A')->where('instock.qty', '>', 50)->get()