We've released a new package called https://github.com/spatie/laravel-sql-commenter. These comments allow you to easily pinpoint the origin of a query when looking at your query log.
You only need to install the package with Composer to add comments to all queries performed by Laravel.
return [ /* * When set to true, comments will be added to all your queries */ 'enabled' => true, /* * These classes add comments to an executed query.
To know more about Mailcoach Cloud, the service where we use this package ourselves, point your browser to https://mailcoach.cloud.