Stelle das U0-Fundament mit CMS, Mitgliedern und Filament bereit.
Deploy Test / test (push) Successful in 2m25s
Deploy Test / deploy (push) Failing after 25s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-15 08:32:14 +01:00
1 parent 89b35ac480
commit 2035c46edd
130 files changed
+18519 -50

No files matched your search

@@ -0,0 +1,23 @@
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
class UseStaffSessionCookie
{
public function handle(Request $request, Closure $next): Response
{
$referer = (string) $request->headers->get('referer', '');
$staffRequest = $request->is('verwaltung', 'verwaltung/*')
|| str_contains($referer, '/verwaltung');
if ($staffRequest) {
config(['session.cookie' => 'luf_staff_session']);
}
return $next($request);
}
}