SR
Steven Richardson
About Articles. Skills Tools
Articles › Eloquent
TAG ARCHIVE

Everything on Eloquent.

3 articles tagged Eloquent — sorted newest first.

php March 29th, 2026

Replacing String Constants with PHP Backed Enums in Laravel Models

String constants like STATUS_PENDING are typo-prone, unautocompleted, and impossible to enumerate exhaustively. PHP backed enums fix all of that — and Laravel has native support throughout.

5 min read →
php March 29th, 2026

PHP Readonly Classes as Value Objects in Laravel

Primitive obsession is one of those code smells that's easy to ignore — until you're debugging which integer is pounds and which is pence. PHP readonly classes fix that cleanly.

6 min read →
php March 19th, 2026

PHP 8.4 Property Hooks in Laravel Models

PHP 8.4 property hooks are a tidy language-level alternative to getters and setters — but before you reach for them in your Eloquent models, there's a catch worth understanding.

4 min read →
← Back to all articles
SR
Steven Richardson

CTO at Digitonic. Writing notes on Laravel, architecture, and the craft of leading software teams — from the west coast of Scotland.

Site

Home About Articles Skills Tools

Elsewhere

GitHub LinkedIn X RSS
© 2026 Steven Richardson Built with Laravel + Tailwind