Profil zeigt geschriebene Beiträge, Als Person anmelden (0.27.1)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 4m47s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 4m40s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m0s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m51s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m1s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m57s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 5m45s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m36s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m21s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 10:03:27 +00:00
parent 1469f50401
commit 546c94db1c
127 changed files with 643 additions and 337 deletions

View file

@ -4,6 +4,7 @@ namespace App\Http\Middleware;
use App\Push\WebPush;
use App\Support\Branding;
use App\Support\Impersonation;
use App\Support\Navigation;
use Illuminate\Http\Request;
use Inertia\Middleware;
@ -41,6 +42,7 @@ class HandleInertiaRequests extends Middleware
] : null,
],
'navigation' => fn () => $user ? $this->navigation->items($request, $user) : [],
'impersonation' => fn () => $user && app(Impersonation::class)->active() ? ['name' => $user->name, 'by' => app(Impersonation::class)->impersonator()?->name] : null,
'notifications' => fn () => $user ? ['unread' => $user->unreadNotifications()->count()] : null,
// Web-Push: öffentlicher Schlüssel für dieses Portal
'push' => fn () => $user && WebPush::supported() ? ['key' => app(WebPush::class)->publicKey()] : null,