Query Tracer Package
Published on by Eric L. Barnes
Laravel Query Tracer is a new package by Trevor Fitzgerald that allows you to find exactly where a query is being called in your app. It works by tapping into Laravel’s global query scopes to do a backtrace and find where a query originated.
The package ships with support for the Laravel Debugbar, Clockwork, or your own query listener.
Update: Barry vd. Heuvel, author of Debugbar, pointed out on Twitter that this is already included with it.
Eric is the creator of Laravel News and has been covering Laravel since 2012.