Laravel Packages

Active Sessions Card for Laravel Pulse

Published
Active Sessions Card for Laravel Pulse image

The Active Sessions card for Laravel Pulse shows your application's total number of sessions, including Web and API users. Based on the pulse.active_session_threshold value, this card will display interactive color-coded indicators in the card based on these values.

This package includes the following main features with the initial release:

  • Display active web sessions and percentage of users
  • Display active API sessions (sanctum)
  • Color-coded thresholds based on the configured session threshold (green, yellow, red)
  • Passport support when only using one provider

To get started with this package, you can install it via Composer:

composer require vcian/pulse-active-sessions

Then you can configure the threshold using the pulse.php config file:

return [
    // ...
 
    'active_session_threshold' => 100,
];

Finally, add the pulse_active_session component to the Pulse dashboard.blade.php file:

<x-pulse>
<livewire:pulse_active_session cols='4' rows='2' />
 
{{-- ... --}}
</x-pulse>

You can learn more about this package, get full installation instructions, and view the source code on GitHub. To get started with Pulse, follow the setup guide in the Laravel Documentation.

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Sponsored

masteringlaravel logo
Laravel Code Review

Get expert guidance in a few days with a Laravel code review

Visit Laravel Code Review

The latest

View all →
Image Dominant Color and HEIC Support in Laravel 13.24 image

Image Dominant Color and HEIC Support in Laravel 13.24

Read article
Official Laravel Zed Extension: LSP for PHP & Blade image

Official Laravel Zed Extension: LSP for PHP & Blade

Read article
Laravel Head: Manage Meta Tags, Open Graph, and JSON-LD image

Laravel Head: Manage Meta Tags, Open Graph, and JSON-LD

Read article
PhpStorm 2026.2 Released image

PhpStorm 2026.2 Released

Read article
Laravel Doctor: Diagnose Your App With One Artisan Command image

Laravel Doctor: Diagnose Your App With One Artisan Command

Read article
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article