eom-plus / nova-idle
A Laravel Nova 4 tool to detect idle/non active user, notice and auto logout
Installs: 105
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: ^7.3|^8.0
- laravel/nova: ^4.0
- outl1ne/nova-translations-loader: ^5.0.1
This package is auto-updated.
Last update: 2025-02-24 09:33:17 UTC
README
Nova 4 package to detect idle/non active user, notice and autologout
Installation
You can install the nova tool in to a Laravel app that uses Nova via composer:
composer require eom-plus/nova-idle
Next up, you must register the tool with Nova. This is typically done in the tools
method of the NovaServiceProvider
.
// in app/Providers/NovaServiceProvider.php // ... public function tools() { return [ // ... new \EomPlus\NovaIdle\NovaIdle(), ]; }
Configuration
Usage
When you register this package it's automatically injected to nova.
Configuration
To be able to config timers, you must publish config file
php artisan vendor:publish --provider="EomPlus\NovaIdle\ToolServiceProvider" --tag=config
You must tune 'duration' and 'reminders' values. By default we start detect idle during 5mn and show dialog when remain 60 seconds.
<?php return [ 'enabled' => true, 'debug' => false, 'duration' => 60 * 5, 'reminders' => [ 60 ], ];
### Translations
Currenlty we have include spanish and english translations. If you want to add more language you publish translations with the following command
php artisan vendor:publish --provider="EomPlus\NovaIdle\ToolServiceProvider" --tag=translations
If you add more languages don't hesitate to send us a PR.
⭐️ Show Your Support
Please give a ⭐️ if this project helped you!
Other Packages You Might Like
- Nova Rating Field - A Star rating Nova 4 field to use in your Laravel Nova apps.
- Nova Feedback Field - An Emoji feedback Nova 4 field to use in your Laravel Nova apps.
- Nova Input Group - A Laravel Nova 4 text field formatted as input group
- Nova Signature - A Laravel Nova 4 signature pad
Take a look to our Github repositories as we have a lot of forked nova components with fixes that are still not merge into main owner branch.
License
The MIT License (MIT). Please see [License File](h