laravel-tdd

Automate Laravel test-driven development workflows with PHPUnit and Pest.

2|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/multiplex-ai/muggle-ai-teams --skill laravel-tdd-multiplex-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-tdd
Source: https://github.com/multiplex-ai/muggle-ai-teams/tree/main/skills/laravel-tdd
Command: npx skills add https://github.com/multiplex-ai/muggle-ai-teams --skill laravel-tdd-multiplex-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Laravel TDD workflow helps developers build robust Laravel applications by guiding you through a disciplined test-driven workflow that ensures code quality from the start.

Core Features & Use Cases

  • Unit tests for pure logic, value objects, and services.
  • Feature tests for HTTP endpoints, authentication, validation, and response shapes.
  • Integration tests for database interactions, migrations, and queues.

Quick Start

Run the Laravel test suite to validate changes and ensure stability after development.

Frequently Asked Questions about laravel-tdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Laravel test-driven development workflows for feature development?

Automate Laravel test-driven development by applying structured PHPUnit or Pest workflows to validate feature development, bug fixes, and refactors across models, controllers, and services. This enforces standardized test structures to ensure code stability.

Does this TDD workflow support both Pest and PHPUnit for database testing?

Yes, this TDD workflow supports both Pest and PHPUnit. It enforces their usage alongside database testing strategies to validate integration tests for database interactions, migrations, and queues within Laravel projects.

What is the best way to validate HTTP endpoints and authentication in Laravel?

The best way to validate HTTP endpoints and authentication is through feature tests. This approach guides you in testing HTTP endpoints, authentication, validation, and response shapes to ensure robust application behavior.

How do I run a Laravel test suite to validate code changes after a refactor?

Run the Laravel test suite after development to validate code changes and ensure stability. This workflow applies test-driven development practices to refactors, confirming that models and services function correctly.

When do I need integration tests for database interactions in Laravel?

You need integration tests for database interactions when validating migrations and queues. This workflow ensures database testing strategies are applied to confirm data integrity during feature development and refactoring.

Can I write unit tests for pure logic and value objects using this workflow?

Yes, you can write unit tests for pure logic, value objects, and services. The workflow enforces PHPUnit and Pest usage to validate these components, ensuring isolated logic correctness within Laravel projects.