Commit b11e530
committed
Fix Laravel 9 compatibility by checking sanctum attribute instead of session state
Changed 'authentication works when APP_URL matches request domain' test
to check for the 'sanctum' attribute instead of session state. The
session->isStarted() check behaves differently in Laravel 9's test
environment, causing false failures.
The sanctum attribute is set directly in the middleware pipeline and
is more reliable across Laravel versions for verifying the middleware
actually ran.1 parent 1b336a7 commit b11e530
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments