@laralex Use something like Laravel Debugbar. It will show you what queries are executed in a request and where they originate.
Feb 21, 2022
3
Level 12
How to detect where exactly is the line of code that is executing a specific query through clockwork
Hey everyone!
I notice queries that doesn't actually exist in the controller on the page I'm visiting but there is nothing to show which exact line is the code that is executing the query. Can you guys show me how can I determine the line of code for each query executed using clockwork?
Level 73
Look at the right side:
https://snipboard.io/uKYnok.jpg each query has the class showing and :19 is the line number. That's of course when you open the Database tab.
Please or to participate in this conversation.

