← All posts

Tag

Laravel

5 posts

PHP 8.6 Performance Benchmark: The php-fpm Image Is Thread-Safe, and That Costs 2%
PHPPerformanceDockerLaravelSymfony

PHP 8.6 Performance Benchmark: The php-fpm Image Is Thread-Safe, and That Costs 2%

php:8.6-fpm is built thread-safe and php:8.5-fpm is not. Laravel and Symfony on php-fpm, php-cgi, FrankenPHP and the CLI, on an x86_64 server and an arm64 Mac: 1.5 to 2.6% fewer requests per second, all of it the build. Sliders, a fleet calculator and the 70% result I threw away.

November 26, 202648 min read
Read post
pgvector in Laravel 13: Tenant Filters, HNSW and the Rows That Go Missing
LaravelPostgreSQLpgvectorRAGPHP

pgvector in Laravel 13: Tenant Filters, HNSW and the Rows That Go Missing

whereVectorSimilarTo() on 100,000 Wikipedia paragraphs in PostgreSQL 18 with pgvector 0.8.7: a tenant filter that loses rows only for the largest teams, paginate() pages that come back empty, and a fix that collides with the similarity threshold. Measured, with the class that fixes all three.

November 11, 202624 min read
Read post
Durable AI Agents in Laravel: an LLM Agent on Temporal, Crashes Included
AgentsLaravelTemporalPHPLLM

Durable AI Agents in Laravel: an LLM Agent on Temporal, Crashes Included

A Laravel support agent built twice, as the usual loop and as a Temporal workflow, then killed mid-refund. Temporal keeps the model's decision but still repeats the refund, and only a key per order pays once. One Laravel call made the live PHP worker report a result that never happened.

November 6, 202619 min read
Read post
The Boundary in Laravel: FormRequest Is Not a DTO
PHPLaravelArchitecturePerformance

The Boundary in Laravel: FormRequest Is Not a DTO

Laravel already enforces two of the five boundary rules and breaks the other three. Deptrac covers the layers, five reflection checks cover what it cannot see, and the measured price is not the mappers — it is the validators that hit the database.

October 21, 202618 min read
Read post
Event Sourcing in Production Laravel: Snapshots, Schema Evolution, and Read-Model Rebuilds
LaravelEvent SourcingArchitecture

Event Sourcing in Production Laravel: Snapshots, Schema Evolution, and Read-Model Rebuilds

Three production concerns that look like separate problems and are not. A working Laravel 13 skeleton with version-aware serializers, snapshot invalidation, and idempotent projection replay — all backed by tests.

September 1, 202623 min read
Read post