Mohamed shows how you can deal with N+1 problems using the $with model attribute and the newly added Model::preventLazyLoading() method.
PHP
sbx: Sandboxed Claude, complete with PHP and tools
A practical walkthrough for running Claude Code inside Docker’s new sbx sandbox, with a custom PHP setup and extra tools for open source work. Benjamin also explains why sandboxing AI coding agents is the sensible Read more…