What problem does it solve?
This Skill helps you build and change Laravel applications safely by turning ideas, bugs, and refactors into clear test-first workflows that reduce regressions and improve confidence.
Core Features & Use Cases
- Red-Green-Refactor Guidance: Plan work around a failing test first, then implement the smallest fix, then clean up without breaking behavior.
- Laravel Test Strategy: Choose the right layer for the job, including unit tests for business logic, feature tests for HTTP and auth flows, and integration tests for database or queue boundaries.
- Database and Side-Effect Testing: Use RefreshDatabase, factories, fakes, and assertions for mail, notifications, events, queues, and external HTTP calls.
- Inertia and Coverage Support: Verify Inertia pages, props, and component names while keeping coverage targets high for production-ready Laravel code.
- Use Case: When adding a new dashboard endpoint or fixing a membership workflow bug, this Skill guides you to write the right test, assert the correct behavior, and protect the change against regressions.
Quick Start
Use the laravel-tdd skill to define the desired Laravel behavior as a failing test first, then implement the minimal code change needed to make that test pass.