backstage/filament-2fa
Adds two-factor authentication to Filament panels. Users enroll via QR code with authenticator apps, confirm with a one-time code, and sign in with TOTP plus recovery codes. Includes setup pages, middleware, and customizable flows for securing your admin panel.
Adopt when:
composer.json before committing; Filament majors move fast and a single-maintainer plugin can lag.Look elsewhere when:
To executives: "We can turn on two-factor authentication for every admin-panel user — the thing blocking the security questionnaire and the enterprise deal — in days, not weeks, at effectively zero licensing cost. It's a small open-source add-on built on Laravel's own authentication library, and it's MIT-licensed, so we can take ownership of the code if the maintainer ever stops. The trade-off is that it's a small project with a single maintainer, so we'll pin the version and keep our own copy."
To engineering: "It's a thin Filament adapter over first-party Laravel Fortify — it gives us TOTP enrollment, QR provisioning, recovery codes, and panel-access enforcement without us rebuilding Fortify's UI in Filament. It adds one dependency to the auth path, so we audit the enrollment and middleware paths, pin the version, and vendor a fork. If Filament ships a breaking major, we may carry that fork for a release or two — a known, bounded cost."
The honest caveat to state up front: low adoption and a single maintainer mean you are accepting the maintenance tail in exchange for speed. That is a good trade for a compliance checkbox and a bad trade if MFA is central to your product's value.
How can I help you explore Laravel packages today?