This commit is contained in:
F4ilji
2026-04-07 17:54:26 +05:00
parent 04adba6682
commit 936b1fb5b0
468 changed files with 43498 additions and 4176 deletions
+1
View File
@@ -86,6 +86,7 @@ class Kernel extends HttpKernel
'rate.limited.check' => RateLimitCheckMiddleware::class,
'ensure.browser' => InternalRequestOnly::class,
'superadmin' => \App\Http\Middleware\EnsureUserIsSuperadmin::class,
'dashboard.auth' => \App\Containers\Dashboard\UI\WEB\Middleware\EnsureDashboardAuthenticated::class,
'limit.post' => LimitPost::class,
'form.time.period' => FormTimePeriodMiddleware::class,
@@ -21,6 +21,11 @@ class HandleInertiaRequests extends Middleware
public function share(Request $request): array
{
// Отключаем SSR для Dashboard роутов
if (str_starts_with($request->path(), 'dashboard')) {
config(['inertia.ssr.enabled' => false]);
}
return [
...parent::share($request),
'auth' => [