anourvalar/laravel-pulse

Additional cards for Laravel Pulse

1.2.7 2025-07-20 19:43 UTC

This package is auto-updated.

Last update: 2025-07-20 19:51:29 UTC


README

Installation

composer require anourvalar/laravel-pulse

Schedule (cron)

Demo

Add recorder to the config/pulse.php:

AnourValar\LaravelPulse\Recorders\ScheduleRecorder::class => [
    'enabled' => env('PULSE_ANOURVALAR_SCHEDULE_ENABLED', true),
    'sample_rate' => env('PULSE_ANOURVALAR_SCHEDULE_SAMPLE_RATE', 1),
    'ignore' => [],
],

Add card to the vendor/pulse/dashboard.blade.php:

<livewire:anourvalar.pulse.schedule cols="6" />

HTTP Requests (count & response time)

Demo

Add recorder to the config/pulse.php:

AnourValar\LaravelPulse\Recorders\HttpRequestsRecorder::class => [
    'enabled' => env('PULSE_ANOURVALAR_HTTP_REQUESTS_ENABLED', true),
    'sample_rate' => env('PULSE_ANOURVALAR_HTTP_REQUESTS_SAMPLE_RATE', 1),
    'ignore' => ['#/admin/#', '#/livewire/#'],
],

Add cards to the vendor/pulse/dashboard.blade.php:

<livewire:anourvalar.pulse.http-requests-count cols="6" />
<livewire:anourvalar.pulse.http-requests-avg cols="6" />

Optionally: To record the latency between the web server and the PHP worker, configure your web server to add a timestamp header:

fastcgi_param HTTP_X_REQUEST_START $msec; # fpm
proxy_set_header X-Request-Start $msec; # octane

Database (queries)

Demo

Add recorder to the config/pulse.php:

AnourValar\LaravelPulse\Recorders\DatabaseRecorder::class => [
    'enabled' => env('PULSE_ANOURVALAR_DATABASE_ENABLED', true),
    'sample_rate' => env('PULSE_ANOURVALAR_DATABASE_SAMPLE_RATE', 1),
    'ignore' => [],
],

Add card to the vendor/pulse/dashboard.blade.php:

<livewire:anourvalar.pulse.database cols="6" />

Ping (Response time & status code)

Demo

Add recorder to the config/pulse.php:

AnourValar\LaravelPulse\Recorders\PingRecorder::class => [
    'enabled' => env('PULSE_ANOURVALAR_PING_ENABLED', true),
    'urls' => ['/'],
],

Add card to the vendor/pulse/dashboard.blade.php:

<livewire:anourvalar.pulse.ping cols="6" />