morrislaptop / laravel-pulse-4xx
Laravel Pulse Card for 4XX responses like validation, auth and not found
Installs: 14 645
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^8.1
- illuminate/contracts: ^10.21
- laravel/pulse: ^1.0@beta
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.14
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
README
Laravel Pulse Card for 4XX responses like validation, auth and not found
Laravel Pulse Card for 4XX responses like validation, auth and not found.
Installation
You can install the package via composer:
composer require morrislaptop/laravel-pulse-4xx
Register the recorder
Add the FourXxRecorder
to the config/pulse.php
file.
return [ // ... 'recorders' => [ + \Morrislaptop\LaravelPulse4xx\FourXxRecorder::class => [ + 'enabled' => env('PULSE_4XX_ENABLED', true), + 'sample_rate' => env('PULSE_4XX_SAMPLE_RATE', 1), + 'ignore' => [ + '#^/wp-admin#', // Classic WordPress... + ], + ], ] ]
Add to your dashboard
To add the card to the Pulse dashboard, you must first publish the vendor view.
php artisan vendor:publish --tag=pulse-dashboard
Then, you can modify the dashboard.blade.php
file:
<x-pulse>
+ <livewire:4xx cols='4' rows='2' />
<livewire:pulse.servers cols="full" />
<livewire:pulse.usage cols="4" rows="2" />
<livewire:pulse.queues cols="4" />
<livewire:pulse.cache cols="4" />
<livewire:pulse.slow-queries cols="8" />
<livewire:pulse.exceptions cols="6" />
<livewire:pulse.slow-requests cols="6" />
<livewire:pulse.slow-jobs cols="6" />
<livewire:pulse.slow-outgoing-requests cols="6" />
</x-pulse>
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.