Laravel Cloud is here! Zero-config managed infrastructure for Laravel apps. Deploy now.

Pulse Active Sessions

vcian/pulse-active-sessions image

Pulse Active Sessions stats

Downloads
8.3K
Stars
59
Open Issues
2
Forks
7

View on GitHub →

A Laravel Pulse card to show active user sessions

Active Sessions card for Laravel Pulse

This card will show total number of sessions in application.

Installation

Require the package with Composer:

composer require vcian/pulse-active-sessions

Next, you should publish the Pulse configuration and migration files using the vendor:publish Artisan command:

php artisan vendor:publish --provider="Laravel\Pulse\PulseServiceProvider"
php artisan migrate

Register the recorder

Right now, the Composer dependencies will only be checked once per day. To run the checks you must add the PulseActiveSessionRecorder to the pulse.php file.

return [
// ...
 
'recorders' => [
+ \Vcian\Pulse\PulseActiveSessions\Recorders\PulseActiveSessionRecorder::class => [],
]
]

You also need to be running the pulse:check command.

Add to your dashboard

To add the card to the Pulse dashboard, you must first publish the vendor view.

Then, you can modify the dashboard.blade.php file:

<x-pulse>
+ <livewire:pulse_active_session 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>

This feature allows you to dynamically set thresholds and display interactive color-coded indicators based on predefined threshold values. Easily configure these thresholds using the pulse.php config file for a visual representation of active sessions.

+ 'active_session_threshold' => 100,
Active Sessions Card Active Sessions Card Active Sessions Card Active Sessions Card

To make pulse recorders will automatically capture entries based on framework events dispatched by Laravel, You must run the below command.

php artisan pulse:check

That's it!

Supported session drivers

  • database
  • file
  • redis
  • memcached

Not Supported

  • Passport : This will not support when multiple providers used as authentication.It only while using single provider.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

We believe in
👇
ACT NOW
PERFECT IT LATER
CORRECT IT ON THE WAY.

Security

If you discover any security-related issues, please email ruchit.patel@viitor.cloud instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

vcian photo

An innovation-centric end to end IT solutions provider in a multitude of industries and domains.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Vcian Pulse Active Sessions Related Articles

Active Sessions Card for Laravel Pulse image

Active Sessions Card for Laravel Pulse

Read article
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Celebian logo

Celebian

Celebian is a social media marketing agency specializing in helping their clients go viral on TikTok. Whether you're looking to reach a bigger audience or gain more Tiktok followers, likes, and views, they've got you covered.

Celebian
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
LoadForge logo

LoadForge

Scalable load testing for web apps & APIs. Simulate real-world traffic and identify breaking points and performance limits with powerful, scalable load tests designed for Laravel.

LoadForge
DreamzTech logo

DreamzTech

Hire 6-10+ Yrs. experienced skilled Laravel Developers from DreamzTech. We ensure NDA protected, 100% quality delivery. Contact Us & Discuss Your Need.

DreamzTech