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.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope