Passkeys
Use passkeys in your Filament app
Author:
MarcelWeidum
Documentation
Use passkeys in your filament app. This package is using the passkeys package from spatie.
Version compatibility: 3.x supports Filament v5. For Filament v3 and v4, use the 2.x branch.
#Installation
- Install the package via composer:
composer require marcelweidum/filament-passkeys
- Add the package's interface and trait to your user model
namespace App\Models;
use Spatie\LaravelPasskeys\Models\Concerns\HasPasskeys;
use Spatie\LaravelPasskeys\Models\Concerns\InteractsWithPasskeys;
// ...
class User extends Authenticatable implements HasPasskeys
{
use HasFactory, Notifiable, InteractsWithPasskeys;
// ...
}
- Publish and run the migrations
php artisan vendor:publish --tag="passkeys-migrations"
php artisan migrate
- Add the package provided routes
// routes/web.php
Route::passkeys();
- Add passkeys plugin to your Filament Panel
Add passkeys to a panel by adding the class to your Filament Panel's plugin() or plugins([]) method.
use MarcelWeidum\Passkeys\PasskeysPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
PasskeysPlugin::make(),
])
}
Don't forget to add ->profile() to you panel as well to manage your passkeys.
(Optional) If you want to customize the translations, you can publish the translations by running:
php artisan vendor:publish --tag="filament-passkeys-translations"
#Common problems
If you're having problems creating passkeys on your profile page, check if your APP_URL in the .env file is set to the correct url of the application.
#Contributing
Please see CONTRIBUTING for details.
#Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
#Credits
#License
The MIT License (MIT). Please see License File for more information.
The author
From the same author
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese
Data Lens
Advanced Data Visualization for Laravel Filament - a premium reporting solution enabling custom column creation, sophisticated filtering, and enterprise-grade data insights within admin panels.
Padmission