Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Sql Commenter Laravel Package

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.

View on GitHub
Deep Wiki
Context7
2.2.0

What's Changed

  • Laravel 13.x Compatibility
  • Drop support for PHP < 8.4 and Laravel < 12
  • Update to Pest 4
2.1.1
2.1.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/2.0.0...2.1.0

2.0.0

Upgrade guide

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');




What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/1.4.0...2.0.0

1.4.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/1.3.1...1.4.0

1.3.1
  • support L10
1.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/1.2.0...1.3.0

1.2.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/1.1.1...1.2.0

1.1.1
  • prevent infinite loop when getting authenticated user
1.1.0
  • add user commenter
  • fix config:cache issue
  • filter empty comments
1.0.0
  • initial release
0.0.3
  • experimental release
0.0.2
  • experimental release
0.0.1
  • experimental release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport