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

How to Hide Route Parameters from Controllers in Laravel

laravel routing route-parameters

Laravel's route parameters are powerful, but they can also be a bit of a pain if you want to hide them from your controllers. This article will show you how to do just that.

May 5th 2025

Avoiding Eager Loading When Registering Laravel Drivers

laravel drivers laravel-container

When registering drivers or other types of extensions for Laravel core classes, it's really easy to accidentally eager to load the service and its entire dependency tree! Fortunately, it's almost as easy to avoid it.

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!