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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners