Skip to content

Commit b28b0fe

Browse files
authored
[HOT-FIX] fix session middleware initialization
1 parent 21b4025 commit b28b0fe

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/app/Http/Middleware/AuthenticateSession.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@
22

33
namespace Backpack\CRUD\app\Http\Middleware;
44

5-
if (class_exists('Illuminate\Contracts\Session\Middleware\AuthenticatesSessions', false)) {
5+
if (app()->version() >= 9.4) {
66
class AuthenticateSession extends AuthenticateSessionL9
77
{
88
}
9+
} else {
10+
class AuthenticateSession
11+
{
12+
public function handle($request, \Closure $next)
13+
{
14+
return $next($request);
15+
}
16+
}
917
}

0 commit comments

Comments
 (0)