Download the PHP package robertboes/filament-passkeys without Composer
On this page you can find all versions of the php package robertboes/filament-passkeys. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download robertboes/filament-passkeys
More information about robertboes/filament-passkeys
Files in robertboes/filament-passkeys
Package filament-passkeys
Short Description Filament plugin that integrates Laravel's official passkeys package into the panel login and profile.
License MIT
Informations about the package filament-passkeys
Filament Passkeys
A Filament v5 plugin that hooks laravel/passkeys into your panel. It adds a "Sign in with passkey" button to the login page, and gives users a passkey section on their profile page where they can add or remove keys. Password confirmation is handled with a Filament modal, so users do not get bounced to a separate page mid-flow.
Requirements
- PHP 8.3+
- Laravel 11, 12, or 13
- Filament v5
laravel/passkeys^0.2
Installation
Install with Composer:
Run the install command. It publishes the laravel/passkeys migration and config, runs migrations, and prints the User-model snippet you still need to add:
Add the trait and contract to your User model:
Register the plugin on your panel:
The JS bundle is registered as a Filament asset, so it gets published when php artisan filament:assets runs. Most Filament apps already run that automatically after composer install via the post-update-cmd script.
What you get
With the default config:
- A "Sign in with passkey" button on the panel's login page.
- A "Passkeys" section on the profile page where users can add, name, and remove their own keys.
- A password confirmation modal that wraps add and remove actions, so
laravel/passkeys'spassword.confirmmiddleware can do its job without a full-page redirect. - A status endpoint so the modal only opens when the user actually needs to reconfirm.
The plugin uses Filament's pre-compiled component classes (fi-section, fi-callout, fi-input-wrp, etc.), so you do not need to add the plugin's blade files to your Tailwind content paths.
The standalone management page at /dashboard/passkeys is off by default, because the profile page section covers the same workflow. Enable it with ->withManagePage() if you prefer a dedicated route.
Configuration
Each surface can be toggled:
Every toggle has a without* counterpart:
Label overrides:
Integrating with a custom EditProfile
If you already extend Filament\Auth\Pages\EditProfile, you can drop the passkey section into your own schema instead of letting the plugin inject it:
Turn off automatic injection so the section does not render twice:
Customising views and strings
Publish the views if you want to tweak the markup:
Publish the config:
Publish the translations:
Tenancy
The plugin works the same with or without tenancy. Filament's EditProfile is panel-level by default, and the optional standalone management page is also registered at the panel root. So /dashboard/passkeys stays at the same URL whether or not the user is currently inside a tenant.
Testing
Credits
- Robert Boes
- Laravel for
laravel/passkeys - Filament for the panel builder
License
The MIT License (MIT). See License File for more information.