Everything on Testing.
9 articles tagged Testing, sorted newest first.
PestStan — Type-Safe Pest 4 Tests With PHPStan Generics in a Laravel App
PestStan teaches PHPStan about Pest's globals — generic expect() types, proper $this binding, and rules that catch broken assertions before the test even runs.
Pest 4 Snapshot Testing for Laravel API Responses: Catch Accidental Schema Drift
Pest 4 has snapshot testing built in. One expectation locks down the shape of your JSON responses so renamed keys and disappearing fields stop slipping into production unnoticed.
Filament v4: The Complete Guide from Zero to Production Dashboard
The end-to-end Filament v4 walkthrough: install the panel, ship resources, relation managers, custom actions, schemas, MFA, multi-tenancy, policies, tests, and a real production deploy: in one place.
Pest 4 Browser Testing with Playwright: A Dusk Replacement That Actually Sticks
Pest 4 ships a first-party browser plugin powered by Playwright. Auto-waits, parallel runs, and time-balanced shards turn a 12-minute Dusk suite into a 90-second CI job.
The Complete Guide to Laravel 13 Multi-Tenancy with Teams
Laravel 13 brings team-based multi-tenancy back into the official starter kits with URL-based context that fixes the old session-based problems. This guide walks through the full lifecycle: scaffolding teams, scoping every query, handling invitations, isolating queued jobs, and choosing between shared-database and database-per-tenant: with copy-paste-runnable code at every step.
Laravel Pennant Feature Flags in Practice
Laravel Pennant gives you first-party feature flags without an external service. Here's how to use it for gradual rollouts, middleware gates, and reliable testing.
GitHub Actions Matrix Testing for Laravel: PHP × Database Combos
Stop testing against one PHP version and one database. Here's the copy-paste GitHub Actions matrix workflow that covers PHP 8.2–8.4 against MySQL, PostgreSQL, and SQLite in one go.
The Complete Guide to Laravel 13 JSON:API Resources
Laravel 13 ships first-party JSON:API resources that handle spec-compliant serialization, relationships, sparse fieldsets, and compound documents out of the box. This guide walks through building a complete API using the new JsonApiResource class: from first resource to production-hardened endpoints.
Enforcing Laravel architecture rules with Pest's arch() helper
Pest's arch() helper lets you write rules that enforce your app's structure at test time: no more accidentally importing Eloquent into a controller.