laravel-tdd

laravel tdd

affaan-m 232k ↓ 5.2k MIT updated 25d ago
Claude Code
View source ↗

What it does

  • Writing new Laravel applications or features
  • Implementing API endpoints with Sanctum or Passport authentication
  • Testing Eloquent models, relationships, scopes, and accessors
  • Setting up testing infrastructure for Laravel projects
  • Writing feature tests for HTTP controllers and form requests
  • Mocking external services (queues, mail, notifications, HTTP)
  • Use factories over manual create() calls

Requirements & configuration

  • $response->assertJsonStructure(['data' => ['user', 'token']]);
  • $response->assertJsonStructure(['data' => ['token']]);
  • $token = $user->createToken('test')->plainTextToken;
  • $this->withToken($token)
  • | $this->withToken($token) | Bearer token auth for APIs |

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

laravel-tdd FAQ

What does the laravel-tdd skill do?

Laravel testing strategies with PHPUnit, Pest, model factories, HTTP tests, Sanctum authentication testing, mocking, and coverage. Writing new Laravel applications or features Implementing API endpoints with Sanctum or Passport authentication

What does laravel-tdd require?

$response->assertJsonStructure(['data' => ['user', 'token']]); $response->assertJsonStructure(['data' => ['token']]); $token = $user->createToken('test')->plainTextToken; $this->withToken($token) | $this->withToken($token) | Bearer token auth for APIs |

How do I install laravel-tdd?

Run: npx -y skills add https://github.com/affaan-m/everything-claude-code --skill laravel-tdd --agent claude-code — the source lives at github.com/affaan-m/everything-claude-code.

Maintain laravel-tdd?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

laravel-tdd on getagentictools
[![laravel-tdd on getagentictools](https://getagentictools.com/badge/skills/affaan-m-everything-claude-code-laravel-tdd.svg)](https://getagentictools.com/skills/affaan-m-everything-claude-code-laravel-tdd?ref=badge)
npx agentictools info skills/affaan-m-everything-claude-code-laravel-tdd

The second line is the CLI lookup for this page — handy in READMEs and docs.