定制 masuresh124/auth-idle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

masuresh124/auth-idle

最新稳定版本:1.0.4

Composer 安装命令:

composer require masuresh124/auth-idle

包简介

This package is used to track the auth activity is idle

README 文档

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

Run the following command to publish the service provider

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

Add the following code in config\app.php

 return [
  .
  .
  .
'providers'   =>[
  .
  .
  Masuresh124\AuthIdle\Providers\AuthIdleProvider::class
]
  ];

In app\Http\Kernel.php add the following middleware

     protected $routeMiddleware = [
        .
        .
        '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

统计信息

  • 总下载量: 34
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固