Articles Tagged: testing
Technical writings, opinionated architectures, and development guides tagged with testing.
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.
Diving into Notifications
Learn to send multi-channel notifications in Laravel with email, Slack, and in-app alerts.
Behavioural Driven Development in Laravel
Discover how Laravel can embrace BDD with the 'Given When Then' approach, uniting teams and creating a ubiquitous testing language without new syntax.
Using Laravel Model Factories in your tests
Master the use of Laravel Model Factories for predictable test data. Learn how to define and modify states for various scenarios in your app.