Implement academy analytics, billing, and web stories updates

This commit is contained in:
2026-05-26 07:27:29 +02:00
parent 456c3d6bb0
commit 0b33a1b074
177 changed files with 27360 additions and 2685 deletions

View File

@@ -94,6 +94,9 @@ final class HandleInertiaRequests extends Middleware
{
$canReadSessionAuth = $this->canReadSessionAuth($request);
$user = $canReadSessionAuth ? $request->user() : null;
$sessionFlash = static fn (string $key): ?string => $canReadSessionAuth
? $request->session()->get($key)
: null;
return array_merge(parent::share($request), [
'auth' => [
@@ -108,6 +111,11 @@ final class HandleInertiaRequests extends Middleware
'is_moderator' => $user->isModerator(),
] : null,
],
'flash' => [
'success' => fn (): ?string => $sessionFlash('success'),
'error' => fn (): ?string => $sessionFlash('error'),
'warning' => fn (): ?string => $sessionFlash('warning'),
],
'cdn' => [
'files_url' => config('cdn.files_url'),
],