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
        // ...
        ->plugins([
            //.......
              Lockscreen::make()
                ->usingCustomTableColumns() // Use custom table columns. Default:  email, password.
                ->enableRateLimit() // Enable rate limit for the lockscreen. Default: Enable, 5 attempts in 1 minute.
                ->setUrl() // Customize the lockscreen url.
                ->enableIdleTimeout() // Enable auto lock during idle time. Default: Enable, 30 minutes.
               ->disableDisplayName() // Display the name of the user based on the attribute supplied. Default: name
               ->icon() // Customize the icon of the lockscreen.
               ->enablePlugin() // Enable the plugin.
        ]); 
}