ARTICLES

Everything I've written.

php

£20–£50 and Other Things PHP Could Not Format: IntlNumberRangeFormatter in 8.6

Every pricing page glues two formatted numbers together with a hyphen. PHP 8.6 finally has a stdlib answer, and it knows things about locales that your helper does not.

9 min read →
php

return Inside finally Is Deprecated in PHP 8.6, and Your Laravel Cleanup Code Probably Does It

PHP 8.6 emits a deprecation for every return inside a finally block. The notice is not pedantry — it is pointing at code that has been swallowing exceptions for years.

8 min read →
laravel

Three Pods, One Migration: Running artisan migrate Safely in Kubernetes

Three replicas, one entrypoint, one migration each. Here is how --isolated, a dedicated Job and a Helm pre-upgrade hook stop a rollout from racing itself into a half-applied schema.

9 min read →
laravel

Validation Rules That Can See the Rest of the Form: DataAwareRule, ValidatorAwareRule and Rule::forEach

A plain rule object only sees its own value, so cross-field logic leaks back into the FormRequest. DataAwareRule, ValidatorAwareRule and Rule::forEach fix that.

10 min read →
laravel

Jev State Design in Laravel: What to Send, What to Trim, and Why 32K Matters

Jev bills the state you send and gives the answers away free, so state size is the whole bill. Here's the JevState builder that keeps it small, deliberate and testable.

12 min read →
laravel

Choosing Jev Confidence Thresholds in Laravel: Tune Them From a Labelled Sample, Not a Guess

Every Jev tutorial tells you to act above 0.9. None of them say where 0.9 came from. Here is the artisan command that derives your number from a hundred labelled rows.

12 min read →
php

spl_object_hash, is_integer and Friends: Clearing PHP 8.6's Deprecated Aliases from Laravel

Most of PHP 8.6's deprecated aliases are a find-and-replace. spl_object_hash() is not — swapping it for spl_object_id() changes a lifetime guarantee that some code quietly depends on.

9 min read →
php

PHP 8.6 Deprecates mbstring Regex: Moving mb_ereg and mb_split to PCRE in Laravel

PHP 8.6 deprecates all sixteen mbstring regex functions because Oniguruma is unmaintained. Here is the PCRE equivalent for each one, and the three places the swap is not like-for-like.

8 min read →