Deploy 2: 2FA (App + Email) + REST API + CSV import-export + auto backup
- Filament v5 multiFactorAuthentication enabled on both panels (App + Email) - HasAppAuthentication + HasEmailAuthentication on User and SuperAdmin - Migration: app_authentication_secret + recovery_codes + email_authentication_at - Sanctum REST API: /api/v1/login, /me, clients, vehicles, work-orders - EnsureTokenMatchesTenant middleware blocks cross-tenant token usage - CsvImportExport service: clients + vehicles bulk via plain CSV - Import/Export buttons on Client + Vehicle list pages - ApiTokens page in tenant panel (generate/revoke + last-used) - BackupAllTenantsCommand + scheduler (daily 03:00, retain 14 days) - Background scheduler in entrypoint.sh
This commit is contained in:
@@ -41,6 +41,11 @@ class TenantPanelProvider extends PanelProvider
|
||||
->databaseNotifications()
|
||||
->databaseNotificationsPolling('30s')
|
||||
->globalSearchKeyBindings(['command+k', 'ctrl+k'])
|
||||
->multiFactorAuthentication([
|
||||
\Filament\Auth\MultiFactor\App\AppAuthentication::make(),
|
||||
\Filament\Auth\MultiFactor\Email\EmailAuthentication::make(),
|
||||
])
|
||||
->profile()
|
||||
->discoverResources(in: app_path('Filament/Tenant/Resources'), for: 'App\\Filament\\Tenant\\Resources')
|
||||
->discoverPages(in: app_path('Filament/Tenant/Pages'), for: 'App\\Filament\\Tenant\\Pages')
|
||||
->pages([
|
||||
|
||||
Reference in New Issue
Block a user