Initial commit

This commit is contained in:
Ronald Huynen
2026-03-23 21:37:59 +01:00
commit 2547717edb
2193 changed files with 972171 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Laravel\Jetstream\Http\Middleware\AuthenticateSession;
class ConditionalAuthenticateSession
{
protected $authenticateSession;
public function __construct(AuthenticateSession $authenticateSession)
{
$this->authenticateSession = $authenticateSession;
}
public function handle(Request $request, Closure $next)
{
// Skip AuthenticateSession middleware in Docker environment
// as it causes session validation issues with session migration
if (env('IS_DOCKER', false)) {
return $next($request);
}
return $this->authenticateSession->handle($request, $next);
}
}