eaa05d68c1
- 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
23 lines
578 B
PHP
23 lines
578 B
PHP
<?php
|
|
|
|
use Laravel\Sanctum\Sanctum;
|
|
|
|
return [
|
|
'stateful' => explode(',', (string) env(
|
|
'SANCTUM_STATEFUL_DOMAINS',
|
|
'localhost,127.0.0.1'
|
|
)),
|
|
|
|
'guard' => ['web'],
|
|
|
|
'expiration' => null,
|
|
|
|
'token_prefix' => env('SANCTUM_TOKEN_PREFIX', ''),
|
|
|
|
'middleware' => [
|
|
'authenticate_session' => Laravel\Sanctum\Http\Middleware\AuthenticateSession::class,
|
|
'encrypt_cookies' => Illuminate\Cookie\Middleware\EncryptCookies::class,
|
|
'validate_csrf_token' => Illuminate\Foundation\Http\Middleware\ValidateCsrfToken::class,
|
|
],
|
|
];
|