https://github.com/geowrgetudor/transaction-rollback
Track rollbacked database transaction in Laravel Pulse.
https://github.com/geowrgetudor/transaction-rollback
database-transactions laravel laravel-package laravel-pulse
Last synced: 3 months ago
JSON representation
Track rollbacked database transaction in Laravel Pulse.
- Host: GitHub
- URL: https://github.com/geowrgetudor/transaction-rollback
- Owner: geowrgetudor
- License: mit
- Created: 2024-01-06T16:29:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-16T08:58:52.000Z (12 months ago)
- Last Synced: 2025-06-16T09:59:37.809Z (12 months ago)
- Topics: database-transactions, laravel, laravel-package, laravel-pulse
- Language: PHP
- Homepage:
- Size: 114 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- awesome-pulse - Database transaction rollbacks - Show database transaction rollbacks (Cards / Application)
README

# Track Laravel database transaction rollbacks
[](https://packagist.org/packages/geowrgetudor/transaction-rollback)
[](https://github.com/geowrgetudor/transaction-rollback/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/geowrgetudor/transaction-rollback/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[](https://packagist.org/packages/geowrgetudor/transaction-rollback)
Track the rollbacked database transaction in Laravel Pulse.
## Installation
You can install the package via composer:
```bash
composer require geowrgetudor/transaction-rollback
```
Optionally, you can publish the views using
```bash
php artisan vendor:publish --tag="transaction-rollback-views"
```
## Usage
Register the recorder inside `config/pulse.php`. (If you don\'t have this file make sure you have published the config file of Laravel Pulse using `php artisan vendor:publish --tag=pulse-config`)
```
return [
// ...
'recorders' => [
// Existing recorders...
\Geow\TransactionRollback\Recorders\TransactionRollbackRecorder::class => [
'enabled' => env('GEOW_TRANSACTION_ROLLBACKS', true),
'ignore' => [
// Ignore connections or databases.
],
]
]
]
```
Rollbacked queries will be recorded ONLY if you use query logging `DB::enableQueryLog()` before starting a transaction.
Publish Laravel Pulse `dashboard.blade.php` view using `php artisan vendor:publish --tag=pulse-dashboard`
Then you can modify the file and add the transaction-rollbacks livewire template.
```php
```
## Testing
```bash
composer test
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [George Tudor](https://github.com/geowrgetudor)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.