PHP code example of marjose123 / filament-lockscreen
1. Go to this page and download the library: Download marjose123/filament-lockscreen 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/ */
marjose123 / filament-lockscreen example snippets
use lockscreen\FilamentLockscreen\Lockscreen;
use lockscreen\FilamentLockscreen\Http\Middleware\Locker;
use lockscreen\FilamentLockscreen\Http\Middleware\LockerTimer;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(new Lockscreen()); // <- Add this
->middleware([
//
LockerTimer::class, // <- Add this (this is an optional, if you want to lock the request after 30 minutes idle)
])
->authMiddleware([
// ...
Locker::class, // <- Add this
]);
}
bash
php artisan vendor:publish --tag="filament-lockscreen-views"