spatie/laravel-sql-commenter
Adds sqlcommenter-style comments to Laravel database queries, embedding context like controller and action. Makes it easy to trace slow or problematic SQL back to the exact code path, and works with tools like PlanetScale Query Insights.
Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/2.1.0...2.1.1
Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/2.0.0...2.1.0
You can no longer call SqlCommenter::addComment statically, you now need to fetch the commenter instance from the container or have it dependency injected into your code.
- SqlCommenter::addComment('My comment');
+ app(SqlCommenter::class)->addComment('My comment');
Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/1.4.0...2.0.0
Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/1.3.1...1.4.0
Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/1.2.0...1.3.0
Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/1.1.1...1.2.0
How can I help you explore Laravel packages today?