ARTICLES

Everything I've written.

laravel

Rebuilding Markdown From Plain Text in Laravel Without Letting a Model Rewrite It

Ask a text model to 'add Markdown formatting' and it quietly paraphrases a clause. Two Jev requests and a renderer in PHP give you structure with every character of the source intact.

15 min read →
laravel

A Choice Question Always Picks Something: Adding a Companion Noul in Laravel

A Jev Choice question always returns one of your options, even when none of them fit. Pair it with a companion Noul in the same request and let your routing read the Noul first.

11 min read →
php

PHP 8.6's Io\Poll: stream_select() Finally Gets a Replacement

PHP has shipped exactly one I/O multiplexing primitive for its entire life, and it was built on a syscall from 1983. PHP 8.6 finally adds a second one.

8 min read →
livewire

Clearing Livewire Validation Errors From JavaScript With $errors.clear()

Livewire 4.2 lets the browser drop a stale validation message without a server round trip. Here is the narrow way to use it, and why it is not resetValidation().

8 min read →
php

PHP 8.6 Changes What trim() Strips, and Your Validation Rules Might Notice

PHP 8.6 adds form feed to the default character list of trim() — the first change to that list in the language's history. Laravel's middleware already handled it. The validator did not.

8 min read →
tailwind

Make It Print: Tailwind v4 Print Styles for Documents People Actually Print

The print: variant hides the nav in one pass. Page breaks, @page margins and dropped background colours are the part nobody writes, and they are what makes a printout readable.

10 min read →
tailwind

Build a Design System in Laravel: Tailwind v4 Tokens, Blade Components and a Docs Page

The same button exists eleven times with eight different paddings and nobody can say which is correct. This is the complete build that fixes it: CSS-first tokens, typed Blade components with enum variants, deliberate class merging, a components page that generates itself, and the tests that stop the whole thing rotting.

21 min read →
livewire

wire:key and the Row That Kept the Wrong Data

A deleted row leaves its checkbox ticked on the wrong invoice. No error, no log line, not reproducible on refresh. Here is what Livewire's morph actually did, and the one attribute that stops it guessing.

11 min read →