PHP code example of masuresh124 / auth-idle

1. Go to this page and download the library: Download masuresh124/auth-idle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

masuresh124 / auth-idle example snippets

bash
  php artisan vendor:publish --provider="Masuresh124\AuthIdle\Providers\AuthIdleProvider"
javascript
 return [
  .
  .
  .
'providers'   =>[
  .
  .
  Masuresh124\AuthIdle\Providers\AuthIdleProvider::class
]
  ];
javascript
     protected $routeMiddleware = [
        .
        .
        'auth-idle'      => \Masuresh124\AuthIdle\Http\Middleware\AuthIdleMiddleware::class,
    ];
javascript
  Auth::routes();

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