Latest Articles

View All

June 29th 2025

Introducing the Request-derived Context Pattern

php design-patterns web context web-development web-application-patterns web-application-architecture

This article introduces the Request-derived Context pattern, a formalisation of a common but often unnamed process in web applications: extracting and resolving contextual information from incoming HTTP requests.

June 10th 2025

Managing the Memory Usage of the Laravel Eloquent Identity Map

laravel eloquent identity-map design-patterns octane memory-management memory-leaks

In my previous article, I introduced a minimal identity map for Laravel Eloquent. In this follow-up, I'll show you how to better manage the memory usage of the identity map, and prevent memory leaking issues for particularly heavy processes, including Laravel Octane.

May 21st 2025

A Minimal Identity Map for Laravel Eloquent

laravel eloquent identity-map design-patterns

Eloquent is a powerful ORM, though it's not without its quirks. One of those quirks is the way it handles model instances, and if you're not careful, you can end up with multiple instances of the same model in memory. This can lead to unexpected behavior and bugs that are hard to track down. In this article, I'll show you how to implement a minimal identity map for Eloquent that will help you avoid these issues.

May 5th 2025

Website revamp, new content and upcoming projects

website ollieread personal

I've revamped the website with a new design, and a much simpler approach, bringing back my blog which has been missing for too long!

Latest Projects

View All