masuresh124/auth-idle

This package is used to track the auth activity is idle

Maintainers

Package info

github.com/masuresh124/auth-idle

pkg:composer/masuresh124/auth-idle

Transparency log

Statistics

Installs: 51

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

2.0 2026-06-29 11:05 UTC

This package is not auto-updated.

Last update: 2026-08-24 11:53:26 UTC


README

This plugin offer an intuitive, user-friendly script where users can easily capture the session idle activitity of a user

Installation

Install laravel auth idle component with the composer

 composer require masuresh124/auth-idle

The service provider is auto-discovered, so no manual registration is required. (On Laravel < 5.5, add Masuresh124\AuthIdle\Providers\AuthIdleProvider::class to the providers array in config/app.php.)

Run the following command to publish the service provider

  php artisan vendor:publish --provider="Masuresh124\AuthIdle\Providers\AuthIdleProvider"

The auth-idle middleware alias is registered automatically by the package's service provider — you do not need to edit app/Http/Kernel.php (removed in Laravel 11) or bootstrap/app.php.

On Laravel 9 / 10 the alias is still registered for you. If you prefer to register it manually instead, add to the $middlewareAliases array in app/Http/Kernel.php: 'auth-idle' => \Masuresh124\AuthIdle\Http\Middleware\AuthIdleMiddleware::class,

In routes/web.php add the following middleware for routes

  Auth::routes();

  Route::middleware(['auth', 'auth-idle'])->group(function () {
    Route::get('/dashboard', [App\Http\Controllers\HomeController::class, 'index'])->name('dashboard');
});

Updating

If the package is already installed and you are trying to update it to the latest version, please follow the instructions below:

  • Take a backup of the existing config file located at app/config/auth-idle.php.
  • Run the following commands:

Note: The commands below will replace the existing config file with the new one. After that, compare the new config file with your backup and add any missing values as needed.

  composer require masuresh124/auth-idle
  php artisan vendor:publish --provider="Masuresh124\AuthIdle\Providers\AuthIdleProvider"  --tag="config-auth-idle" --force

Badges

MIT License

Authors

Features

  • Capture the user idle activity
  • Can add custom time
  • Add custom conditions