定制 marcelweidum/filament-passkeys 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marcelweidum/filament-passkeys

最新稳定版本:v2.0.1

Composer 安装命令:

composer require marcelweidum/filament-passkeys

包简介

Use passkeys in your filamentphp app

README 文档

README

Latest Version on Packagist Total Downloads GitHub Code Style Action Status Filament 4.x

Use passkeys in your filament app. This package is using the passkeys package from spatie.

Filament Passkeys cover

 

Installation

  1. Install the package via composer:
composer require marcelweidum/filament-passkeys
  1. 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;

    // ... 
}
  1. Publish and run the migrations
php artisan vendor:publish --tag="passkeys-migrations"
php artisan migrate
  1. Add the package provided routes
// routes/web.php
Route::passkeys();
  1. 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.

统计信息

  • 总下载量: 8.89k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 48
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 48
  • Watchers: 2
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固