Skip to content
Advertisement

Laravel Query Filtering Out Transactions and Checking Between Two Dates

My query is working for getting the existing transactions between two dates. However, the whereNotIn function is not filtering out the transaction. It still selects transactions that were either cancelled, declined or finished. What seems to be the problem on my query? Thank you

JavaScript

Advertisement

Answer

you should orginize your ‘wheres’ to do exactly what you want, to do this, you can use where with closer:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement