What problem does it solve?
This Skill solves the difficulty of building reliable Laravel applications by teaching a repeatable test-driven development workflow that keeps unit and feature coverage high and reduces regressions.
Core Features & Use Cases
- Red-Green-Refactor TDD cycle: Write a failing test, implement the minimal change to pass, then refactor while keeping tests green.
- Test layering guidance: Choose the right test type for the scope, from unit (pure PHP) to feature (HTTP/auth/validation) to integration (DB/queues/external boundaries).
- Laravel testing strategy: Use the appropriate database refresh mechanism (defaulting to RefreshDatabase), leverage factories/states, and isolate side effects with fakes (Queue, Mail, Notification, Event) and Http fakes.
Quick Start
Ask the AI to design a Laravel TDD plan for a new API endpoint, including which Pest vs PHPUnit tests to write, what database refresh strategy to use, and which assertions should validate the JSON response shape.