0087-laravel-tdd

Community

Ship Laravel features by testing first

AuthorMrJmpl3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It reduces uncertainty and regressions by forcing you to define expected behavior with a failing test before writing Laravel code.

Core Features & Use Cases

  • Laravel-first TDD cycle: RED → verify RED → GREEN → verify GREEN → REFACTOR, iterated until the behavior is correct and maintainable.
  • Framework-specific test patterns: Feature tests, database verification with RefreshDatabase, authorization checks, and API testing with auth guards.
  • When to use: Apply to new Laravel features and bug fixes such as controllers, models, services, endpoints, validation, policies, queues, middleware, and Artisan commands.

Quick Start

Write a minimal Pest test for the Laravel feature you want to implement, run the test to confirm it fails, then write the smallest Laravel code needed to make it pass.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: 0087-laravel-tdd
Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0087-laravel-tdd

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.