Readonly Properties in PHP 8: Practical Use Cases
A practical guide to PHP readonly properties: value objects, DTOs, immutable config, constructor promotion, and the gotchas that bite in production.
19 Articles
A practical guide to PHP readonly properties: value objects, DTOs, immutable config, constructor promotion, and the gotchas that bite in production.
A practical guide to Laravel events listeners: auto-discovery in Laravel 11+, queued listeners, real trade-offs, and the pitfalls to avoid.
How to build an exponential backoff retry with jitter that survives real outages: which errors to retry, capping delays, and Retry-After.
Learn to write testable PHP code without a framework: dependency injection, injecting time and randomness, and a plain PHPUnit test.
Laravel API Resources vs Fractal for JSON serialization: code, trade-offs, a comparison table, and a clear pick for your next API.
A practical guide to PHP 8.4 property hooks: get/set syntax, virtual properties, interface requirements, and when they beat plain getters.
Stop parsing broken LLM JSON. A practical PHP/Laravel guide to reliable structured output using tool calling, schema validation, and retries.
Learn to cache Laravel queries the right way: Cache::remember, TTLs, cache keys, Redis tags, and invalidation that doesn't serve stale data.
Why the Laravel 419 Page Expired error happens and how to fix the CSRF token mismatch in forms, AJAX calls, and session config.
A practical guide to PHP enums: pure vs backed, cases(), from(), tryFrom(), methods, interfaces, and real-world usage in Laravel.
An honest look at the repository pattern in Laravel: what it is, how to bind it in a service provider, and when it's just extra indirection.
A practical guide to Laravel job batching: dispatching batches, then/catch/finally callbacks, progress tracking, and cancelling running batches.
Learn how to call the Claude API in PHP: keys, requests, responses, streaming, and a clean Laravel integration with runnable code.
A practical Pest vs PHPUnit comparison for Laravel in 2026: syntax, expectations, datasets, plugins, and which testing tool I'd actually pick.
A practical guide to dockerize Laravel for production: multi-stage builds, PHP-FPM + nginx, opcache, migrations and queue workers.
Fix the Eloquent N+1 problem for good: why lazy loading in a loop kills performance, how to detect it, and eager loading patterns that scale.
A practical guide to PHP 8.3 typed constants: syntax, covariance rules, interface gotchas, and runnable examples for cleaner, safer class contracts.
Why the PHP maximum execution time exceeded error happens, how max_execution_time, set_time_limit and ini_set differ, and the real fix.
Learn to retry failed jobs in Laravel with queue:retry, tries, backoff, and retryUntil so transient errors stop breaking your queue.