Home/Blog

Engineering blog

Software architecture, Laravel & systems engineering, from production.

Deep dives and practical engineering notes on offline-first architectures, scalable Laravel & PHP APIs, AI pipelines, database optimisation, queues, and containerised deployments, each written from systems I actually shipped.

26 articles9 topicsRSS →

Latest Article · Architecture

Laravel Middleware vs FormRequest vs Policy vs Resource: Layered API Security in Laravel 13

Where auth, validation, authorization, and error handling belong in Laravel 13: bootstrap/app.php middleware, 404 vs 403 IDOR defense, DB::transaction file safety, and centralized match(true) exceptions.

November 25, 2026 · 12 min read

Read article
Performance10 min read

MySQL Query Optimisation in Laravel

Fix N+1 queries, add the right composite indexes, read EXPLAIN output and stop full table scans in your Laravel Eloquent code.