Snapshot of main at 9f39a6e1e (2026-11-02)
This commit is contained in:
commit
6ccf1792d7
2580 files changed
+1040202
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user