Skip to content

Commit af3f5d4

Browse files
committed
stateful api comment
1 parent 348cf69 commit af3f5d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bootstrap/app.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
)
2020
->withMiddleware(function (Middleware $middleware) {
2121
$middleware
22+
// If the guard is web, we will use the stateful api middleware
23+
->statefulApi()
2224
->throttleApi(redis: true)
2325
->trustProxies(at: IpUtils::PRIVATE_SUBNETS)
24-
->statefulApi()
2526
->api(prepend: [
2627
JsonResponse::class,
2728
]);

0 commit comments

Comments
 (0)