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.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners