What database are you using? Also, it will be helpful to share the error message in detail - as it appears.
Apr 4, 2019
2
Level 1
How to debug a query
Hi guys,
got a rather annoying issue, there seems to be something wrong with one of my queries, to try and remedy this I installed https://github.com/barryvdh/laravel-debugbar hoping that it would help me find out which query is at fault. I've tried following a few examples I found on the internet, but can't find anything specific for queries. The error I get is "bad sort specification" and a file name (it's mongodb and query works fine in MySQL) I know where the queries are (or at least I think I do)
How do I go about targeting the query at fault?.
Please or to participate in this conversation.