Skip to content

v6.1.6

Choose a tag to compare

@cindreta cindreta released this 09 Jun 11:51
· 9 commits to main since this release
289e928

SQL queries were captured correctly in standard Laravel but the queries array arrived empty when running under Laravel Octane.

Octane handles each request in a cloned "sandbox" container. Scoped bindings (like QueryCollector) are resolved fresh per-request inside that sandbox. The QueryExecuted event listener was registered once at boot using $this->app — a reference to the parent container captured at service provider instantiation. Octane never touches this container during request handling, so queries were recorded into the parent's QueryCollector instance.