webbingbrasil/filament-2fa
最新稳定版本:v1.0.0
Composer 安装命令:
composer require webbingbrasil/filament-2fa
包简介
A 2FA plugin for filament.
README 文档
README
A Two Factor Authentication plugin for Filament
Installation
- Install the package via composer (requires filament >= 2.10.40)
composer require webbingbrasil/filament-2fa
- Publish assets and run migrations
php artisan vendor:publish --tag="filament-2fa-migrations" php artisan migrate Optionally, you can publish config or views:
php artisan vendor:publish --tag="filament-2fa-config" php artisan vendor:publish --tag="filament-2fa-views"
-
Add
\Webbingbrasil\FilamentTwoFactor\TwoFactorAuthenticatabletrait to your user model. -
Update the
config/filament.phpto point to the Two Factor Login::class.
"auth" => [ "guard" => env("FILAMENT_AUTH_GUARD", "web"), "pages" => [ "login" => \Webbingbrasil\FilamentTwoFactor\Http\Livewire\Auth\Login::class, ], ],
Integrate With Custom Profile Page
This package has a component for two-factor setup that can be easily added to a profile page, like the one for filament-jetstream-theme.
Create a view with the <livewire:filament-two-factor-form> component like the example below:
// resources/views/partials/2fa-section.blade.php <hr /> <x-filament-jetstream::grid-section class="mt-8"> <x-slot name="title"> {{ __('filament-2fa::two-factor.title') }} </x-slot> <x-slot name="description"> {{ __('filament-2fa::two-factor.description') }} </x-slot> <div class="space-y-3"> <x-filament::card> <livewire:filament-two-factor-form> </x-filament::card> </div> </x-filament-jetstream::grid-section>
Then add the view to your profile page using render hook:
## in Service Provider file public function boot() { Filament::registerRenderHook( 'filament-jetstream.profile-page.end', fn (): View => view('partials.2fa-section'), ); }
Screenshots
Credits
License
The MIT License (MIT). Please see License File for more information.
webbingbrasil/filament-2fa 适用场景与选型建议
webbingbrasil/filament-2fa 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 37.98k 次下载、GitHub Stars 达 47, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「2fa」 「filament」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 webbingbrasil/filament-2fa 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 webbingbrasil/filament-2fa 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 webbingbrasil/filament-2fa 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel Authentication package with built-in two-factor (Authy) and social authentication (Socialite).
This package provides Laravel bindings and a Eloquent/Model trait for pragmarx/recovery package.
A stylish PHP application framework crafted using Slim, Twig, Eloquent and Sentinel designed to get you from clone to production in a matter of minutes.
Duo Security Universal Prompt two-factor authentication for Roundcube. Supports multiple authentication methods including push notifications, SMS, phone calls, and hardware tokens.
PHP library for consuming Infobip's API
Multifactor Authenctication for kirby panel
统计信息
- 总下载量: 37.98k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 47
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04






