stephenjude/filament-two-factor-authentication
two_factor_secret column addition remains automated.axios version bump to 1.16.1).Illuminate\Contracts\Auth\MustVerifyEmail compatibility (if using email verification).Illuminate\Auth\Events\Verified or Attempting events.axios@1.16.1).APP_KEY remains critical; no changes to this flow.axios and postcss updates.axios@1.16.1 (dependency bump).postcss@8.5.15 (for CSS processing).stephenjude/filament-two-factor-authentication@5.0.0.laravel/sanctum or laravel/passport (if using API auth).paragonie/google2fa (TOTP; included).composer require laravel/framework:^13.0
npm install
npm run dev
users table before migrations.composer require stephenjude/filament-two-factor-authentication:^5.0
php artisan vendor:publish --provider="StephenJude\FilamentTwoFactorAuthentication\FilamentTwoFactorAuthenticationServiceProvider"
config/filament.php to include the 2FA policy.APP_URL (required for Passkeys).EnsureTwoFactorAuthenticated middleware (unchanged):
Route::middleware(['auth:sanctum', 'ensureTwoFactorAuthenticated'])->group(function () { ... });
Verified).filament/spatie-laravel-permission) remain a risk.two_factor_secret column is manually added.stancl/tenancy).axios or postcss updates if using Laravel Mix.axios@1.16.1, postcss@8.5.15 may require frontend adjustments.two_factor_attempted, passkey_registered) for auditing.two_factor_secret column adds negligible load.| Failure Scenario | Mitigation |
|---|---|
| TOTP secret loss | Backup codes + admin recovery. |
| Passkey device failure | Fallback to TOTP or backup codes. |
| Database corruption | Regular backups; transactional migrations. |
| Laravel 13 breaking changes | Test in staging; rollback plan. |
| Filament update breaking 2FA | Test updates in staging; monitor Filament release notes. |
| Brute-force 2FA setup attempts | Add throttle middleware to /two-factor-authentication routes. |
| New: Laravel 13 type errors | Update custom auth logic to use Laravel 13’s stricter type declarations. |
How can I help you explore Laravel packages today?