PHP code example of statview / filament-passkeys

1. Go to this page and download the library: Download statview/filament-passkeys 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/ */

    

statview / filament-passkeys example snippets




use Statview\Passkeys\Concerns\HasPasskeys;

class User extends Model {
    use HasPasskeys;
...



class VerifyCsrfToken extends Middleware
{
    /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array<int, string>
     */
    protected $except = [
        'passkeys/*',
    ];
}



use Statview\Passkeys\PasskeysPlugin;

class AdminPanel extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            // ...
            ->plugin(PasskeysPlugin::make())
            // ...
    }    
}
bash
php artisan migrate
bash
php artisan filament:assets