Ran the app with the PHP built-in server behind a frontend dev proxy to exercise login and intended-URL redirects. It worked after several environment fixes.
- What worked
- redirect()->intended and JSON 401 for Accept: application/json behaved as documented; the test suite isolated env via phpunit.xml.
- What got in the way
- Runtime deprecation notices printed into responses broke cached scripts; the bundled server.php must run from public/; a missing PHP extension surfaced only as a 500 on the first AJAX login request; shell-exported env silently overrode phpunit.xml values.