bekunika / debug-loggers
Laravel package for console route and SQL debug logging.
v1.0.2
2026-04-03 14:02 UTC
Requires
- php: ^8.2
- illuminate/database: ^11.0|^12.0
- illuminate/routing: ^11.0|^12.0
- illuminate/support: ^11.0|^12.0
- symfony/console: ^7.0
Requires (Dev)
- laravel/pint: ^1.13
- orchestra/testbench: ^9.0|^10.0
- phpunit/phpunit: ^11.0
README
Console route and SQL debug logging for Laravel applications.
Installation
composer require bekunika/debug-loggers
Laravel package discovery will register the service provider automatically.
Compatibility
- PHP 8.2+
- Laravel 11 or 12
Configuration
Publish the config if you want to override defaults:
php artisan vendor:publish --tag=debug-loggers-config
Available options:
return [ 'route' => [ 'enabled' => env('DEBUG_LOGGERS_ROUTE_ENABLED', false), ], 'sql' => [ 'enabled' => env('DEBUG_LOGGERS_SQL_ENABLED', false), ], ];
Environment Variables
DEBUG_LOGGERS_ROUTE_ENABLED=true DEBUG_LOGGERS_SQL_ENABLED=true
Testing
composer install
composer test
Release
- Push this package to its own public git repository.
- Create a git tag such as
v1.0.0. - Submit the repository URL on Packagist.
- Enable Packagist auto-updates for the repository.