Everything I've written.
// The version that OOMs. Four copies of the same photo.
$raw = file_get_contents($path); // 9 MiB string
$encoded = base64_encode($raw); // 12 MiB string
$body = json_encode([ // ~12 MiB more
'assets' => ['photo' => ['type' => 'image', 'format' => 'jpg', 'data_base64' => $encoded]],
// ...
]);
// Guzzle then holds the serialised body too: ~12 MiB again.
£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.
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.
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.
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.
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.
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.
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.
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.