PackageTrack
Sign in Get early access

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 2026
2023 2024 2025 2026
Release Pre-release

Releases

latest 14
  1. 2.2.0 06 Mar 2026
    Release notes

    What's Changed

    • Laravel 13.x Compatibility
    • Drop support for PHP < 8.4 and Laravel < 12
    • Update to Pest 4
    Open source →
    Release notes

    What's Changed

    • Laravel 13.x Compatibility
    • Drop support for PHP < 8.4 and Laravel < 12
    • Update to Pest 4
    Open source →
  2. 2.1.1 21 Feb 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 2.1.0...2.1.1

    Open source →
    Release notes

    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

    Open source →
  3. 2.1.0 18 Oct 2024
    Release notes

    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

    Full Changelog: 2.0.0...2.1.0

    Open source →
    Release notes

    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

    Open source →
  4. 2.0.0 14 Mar 2024
    Release notes

    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: 1.4.0...2.0.0

    Open source →
    Release notes

    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

    • 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

    Open source →
  5. 1.4.0 11 Jul 2023
    Release notes

    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

    Full Changelog: 1.3.1...1.4.0

    Open source →
    Release notes

    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

    Open source →
  6. 1.3.1 26 Jan 2023
    Release notes
    • support L10
    Open source →
    Release notes
    • support L10
    Open source →
  7. 1.3.0 16 Jan 2023
    Release notes

    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

    Full Changelog: 1.2.0...1.3.0

    Open source →
    Release notes

    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

    Open source →
  8. 1.2.0 14 Oct 2022
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 1.1.1...1.2.0

    Open source →
    Release notes

    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

    Open source →
  9. 1.1.1 04 Jul 2022
    Release notes
    • prevent infinite loop when getting authenticated user
    Open source →
    Release notes
    • prevent infinite loop when getting authenticated user
    Open source →
  10. 1.1.0 04 Jul 2022
    Release notes
    • add user commenter
    • fix config:cache issue
    • filter empty comments
    Open source →
    Release notes
    • add user commenter
    • fix config:cache issue
    • filter empty comments
    Open source →
  11. 1.0.0 02 Jul 2022
    Release notes
    • initial release
    Open source →
  12. 0.0.3 02 Jul 2022
    Release notes
    • experimental release
    Open source →
  13. 0.0.2 02 Jul 2022
    Release notes
    • experimental release
    Open source →
  14. 0.0.1 02 Jul 2022
    Release notes
    • experimental release
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive