spatie/laravel-sql-commenter
Add comments to SQL queries made by Laravel
2.2.0
1.8M downloads/mo
#2845 most downloaded on Packagist
spatie/laravel-sql-commenter
What this package is like to depend on
Last release 5 months ago
06 Mar 2026
Ships fairly regularly
a new release about every 5 months
Nearly every release is documented
notes for 14 of 14 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
14 releases · first in 2022
1 release in the last 12 months
see the full history below
Release timeline
14 releases · Jul 2022 to Mar 2026Releases
latest 14-
2.2.006 Mar 2026Release notes
Open source →What's Changed
- Laravel 13.x Compatibility
- Drop support for PHP < 8.4 and Laravel < 12
- Update to Pest 4
Release notes
Open source →What's Changed
- Laravel 13.x Compatibility
- Drop support for PHP < 8.4 and Laravel < 12
- Update to Pest 4
-
2.1.121 Feb 2025Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in #29
- Laravel 12.x Compatibility by @laravel-shift in #30
New Contributors
- @laravel-shift made their first contribution in #30
Full Changelog: 2.1.0...2.1.1
Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in https://github.com/spatie/laravel-sql-commenter/pull/29
- Laravel 12.x Compatibility by @laravel-shift in https://github.com/spatie/laravel-sql-commenter/pull/30
New Contributors
- @laravel-shift made their first contribution in https://github.com/spatie/laravel-sql-commenter/pull/30
Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/2.1.0...2.1.1
-
2.1.018 Oct 2024Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 1.6.0 to 2.2.0 by @dependabot in #25
- Bump dependabot/fetch-metadata from 1.6.0 to 2.2.0 by @dependabot in #27
- Add support for adding connections after boot by @jholloman in #26
New Contributors
- @jholloman made their first contribution in #26
Full Changelog: 2.0.0...2.1.0
Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 1.6.0 to 2.2.0 by @dependabot in https://github.com/spatie/laravel-sql-commenter/pull/25
- Bump dependabot/fetch-metadata from 1.6.0 to 2.2.0 by @dependabot in https://github.com/spatie/laravel-sql-commenter/pull/27
- Add support for adding connections after boot by @jholloman in https://github.com/spatie/laravel-sql-commenter/pull/26
New Contributors
- @jholloman made their first contribution in https://github.com/spatie/laravel-sql-commenter/pull/26
Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/2.0.0...2.1.0
-
2.0.014 Mar 2024Release notes
Open source →Upgrade guide
You can no longer call
SqlCommenter::addCommentstatically, 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
- Bump spatie/invade version to 2.0 by @vigneshgurusamy in #19
- Add support for laravel 11 by @shuvroroy in #20
- Add Octane compatibility by @riasvdv in #22
New Contributors
- @shuvroroy made their first contribution in #20
- @riasvdv made their first contribution in #22
Full Changelog: 1.4.0...2.0.0
Release notes
Open source →Upgrade guide
You can no longer call
SqlCommenter::addCommentstatically, 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
- Bump spatie/invade version to 2.0 by @vigneshgurusamy in https://github.com/spatie/laravel-sql-commenter/pull/19
- Add support for laravel 11 by @shuvroroy in https://github.com/spatie/laravel-sql-commenter/pull/20
- Add Octane compatibility by @riasvdv in https://github.com/spatie/laravel-sql-commenter/pull/22
New Contributors
- @shuvroroy made their first contribution in https://github.com/spatie/laravel-sql-commenter/pull/20
- @riasvdv made their first contribution in https://github.com/spatie/laravel-sql-commenter/pull/22
Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/1.4.0...2.0.0
-
1.4.011 Jul 2023Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in #12
- Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in #14
- Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1 by @dependabot in #15
- Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in #16
- Add support for commenting multiple database connections by @alexthekiwi in #13
New Contributors
- @alexthekiwi made their first contribution in #13
Full Changelog: 1.3.1...1.4.0
Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in https://github.com/spatie/laravel-sql-commenter/pull/12
- Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in https://github.com/spatie/laravel-sql-commenter/pull/14
- Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1 by @dependabot in https://github.com/spatie/laravel-sql-commenter/pull/15
- Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in https://github.com/spatie/laravel-sql-commenter/pull/16
- Add support for commenting multiple database connections by @alexthekiwi in https://github.com/spatie/laravel-sql-commenter/pull/13
New Contributors
- @alexthekiwi made their first contribution in https://github.com/spatie/laravel-sql-commenter/pull/13
Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/1.3.1...1.4.0
-
1.3.126 Jan 2023 -
1.3.016 Jan 2023Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 1.3.4 to 1.3.5 by @dependabot in #8
- Added ability to use relative path in FileCommenter by @peresmishnyk in #11
New Contributors
- @peresmishnyk made their first contribution in #11
Full Changelog: 1.2.0...1.3.0
Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 1.3.4 to 1.3.5 by @dependabot in https://github.com/spatie/laravel-sql-commenter/pull/8
- Added ability to use relative path in FileCommenter by @peresmishnyk in https://github.com/spatie/laravel-sql-commenter/pull/11
New Contributors
- @peresmishnyk made their first contribution in https://github.com/spatie/laravel-sql-commenter/pull/11
Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/1.2.0...1.3.0
-
1.2.014 Oct 2022Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 1.3.3 to 1.3.4 by @dependabot in #6
- Add exclude path segment property for FileCommenter by @vigneshgurusamy in #7
New Contributors
- @vigneshgurusamy made their first contribution in #7
Full Changelog: 1.1.1...1.2.0
Release notes
Open source →What's Changed
- Bump dependabot/fetch-metadata from 1.3.3 to 1.3.4 by @dependabot in https://github.com/spatie/laravel-sql-commenter/pull/6
- Add exclude path segment property for FileCommenter by @vigneshgurusamy in https://github.com/spatie/laravel-sql-commenter/pull/7
New Contributors
- @vigneshgurusamy made their first contribution in https://github.com/spatie/laravel-sql-commenter/pull/7
Full Changelog: https://github.com/spatie/laravel-sql-commenter/compare/1.1.1...1.2.0
-
1.1.104 Jul 2022 -
1.1.004 Jul 2022 -
1.0.002 Jul 2022 -
0.0.302 Jul 2022 -
0.0.202 Jul 2022 -
0.0.102 Jul 2022