Skip to content

make query on array of object #2479

Answered by Giacomo92
AliAmini78 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @AliAmini78 ,
Have you tried this query?
Model::where('instock.warehouse', 'A')->where('instock.qty', '>', 50)->get()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AliAmini78
Comment options

Answer selected by AliAmini78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2472 on December 17, 2022 18:01.