Column as parameter into whereHas #1378
-
It's possible to pass a column value as a parameter into const products = await Product
.query()
.whereHas('offers', (builder) => {
builder.where('is_available', true)
}, '>', 'product.max_offers')
.fetch() |
Beta Was this translation helpful? Give feedback.
Answered by
thetutlage
Aug 1, 2020
Replies: 1 comment
-
Nope not right now. However, I am adding it to the newer version of Lucid targeting v5 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
willianhf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nope not right now. However, I am adding it to the newer version of Lucid targeting v5