Tag
Testing
Every article on Testing, newest first.
- 17Articles
- 173 minOf reading
- 4Subjects
Your API Key Is in Your Stack Trace
With one PHP setting off, every frame of an exception's trace keeps its arguments, and an SDK's authenticated request goes with them. Where keys leak, why production hides it, and how to stop it.
Both Ends of the Wire
I built a small CRM API on api-toolbox and its SDK on sdk-toolbox, in one repository, tested against each other. My own two libraries disagreed within a day.
An Audit Log You Cannot Quietly Edit
A hash chain makes editing your audit log expensive, and only becomes evidence once a hash lives somewhere the editor can't reach. Built in Laravel, traps included.
Building a home-education platform with Laravel 13, Inertia and React, and shipping it to Laravel Cloud
A Laravel 13, Inertia and React platform for home educating my son: an append-only learning record, a planner, AI kept on a short lead, and what Laravel Cloud asked of the code.
Your Test Suite Is an Architecture Report
A slow Laravel test suite gets treated as a tooling problem. It is usually a coupling measurement, and the number worth watching is not how long the suite takes.
Seven Days in Ten Milliseconds
A workflow that sleeps for three days is not a workflow you can test by waiting. Owning the clock, asserting on absence, and the races you only get one shot at.
Building Bulletproof Laravel APIs using Schema-First Contract Validation
Stop letting undocumented fields into your Laravel API. Write the JSON Schema first, then enforce it in middleware, DTOs, and your Pest test suite.
Testing Actions, Not Mocks
Mocking your own Actions tests the wiring, not the behaviour. How I test Laravel Action classes for real with Pest, and where fakes still belong.
Why your Laravel controllers should be almost empty
Controllers are a transport layer, not a home for business logic. How I keep Laravel controllers down to a handful of lines using Form Requests, payloads, and Action classes.
Automate local API testing with Bash
This article shows how to automate a complete authentication workflow using Bash, curl, and jq.
Building your first MCP server with Laravel
Learn how to build a Laravel MCP server for task management with tools, resources, prompts, Sanctum auth, Pest testing, and Claude integration.
Building modular systems in Laravel - A practical guide
Learn how modular architecture transforms Laravel apps into scalable, maintainable systems.