## Summary - add the Spec 194 governance action catalog, friction classes, reason policies, and regression guards - align exception, review, evidence, finding, tenant, provider connection, and system run actions to the shared semantics model - add focused feature, RBAC, audit, unit, and browser coverage, including the tenant detail triage header consistency update ## Verification - ran the focused Spec 194 verification pack from the quickstart and task plan - ran targeted tenant triage coverage after the detail-header update - ran `cd apps/platform && ./vendor/bin/sail bin pint --dirty --format agent` ## Filament Notes - Filament v5 / Livewire v4 compliance preserved - provider registration remains in `apps/platform/bootstrap/providers.php` - globally searchable resources were not changed - destructive actions remain confirmation-gated and server-authorized - no new Filament assets were introduced; the existing `cd apps/platform && php artisan filament:assets` deploy step stays unchanged Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #229
45 lines
1.7 KiB
PHP
45 lines
1.7 KiB
PHP
<?php
|
|
|
|
use Illuminate\Foundation\Application;
|
|
use Illuminate\Foundation\Configuration\Exceptions;
|
|
use Illuminate\Foundation\Configuration\Middleware;
|
|
|
|
use App\Http\Middleware\SuppressDebugbarForSmokeRequests;
|
|
use App\Http\Middleware\UseSystemSessionCookieForLivewireRequests;
|
|
|
|
return Application::configure(basePath: dirname(__DIR__))
|
|
->withRouting(
|
|
web: __DIR__.'/../routes/web.php',
|
|
commands: __DIR__.'/../routes/console.php',
|
|
health: '/up',
|
|
)
|
|
->withMiddleware(function (Middleware $middleware): void {
|
|
$middleware->prepend(SuppressDebugbarForSmokeRequests::class);
|
|
|
|
$middleware->encryptCookies(except: [
|
|
SuppressDebugbarForSmokeRequests::COOKIE_NAME,
|
|
]);
|
|
|
|
$middleware->web(prepend: [
|
|
UseSystemSessionCookieForLivewireRequests::class,
|
|
]);
|
|
|
|
$middleware->alias([
|
|
'ensure-correct-guard' => \App\Http\Middleware\EnsureCorrectGuard::class,
|
|
'ensure-platform-capability' => \App\Http\Middleware\EnsurePlatformCapability::class,
|
|
'ensure-workspace-member' => \App\Http\Middleware\EnsureWorkspaceMember::class,
|
|
'ensure-workspace-selected' => \App\Http\Middleware\EnsureWorkspaceSelected::class,
|
|
'ensure-filament-tenant-selected' => \App\Support\Middleware\EnsureFilamentTenantSelected::class,
|
|
]);
|
|
|
|
$middleware->prependToPriorityList(
|
|
\Illuminate\Contracts\Auth\Middleware\AuthenticatesRequests::class,
|
|
\App\Http\Middleware\EnsureCorrectGuard::class,
|
|
);
|
|
|
|
$middleware->redirectGuestsTo('/admin/login');
|
|
})
|
|
->withExceptions(function (Exceptions $exceptions): void {
|
|
//
|
|
})->create();
|