0094-laravel-validation

Community

Validate requests once, test everything.

AuthorMrJmpl3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the problem of inconsistent or incomplete Laravel validation by centralizing validation rules in Form Requests and pairing them with repeatable, systematic tests.

Core Features & Use Cases

  • Form Request as the single source of truth: Keep validation rules, custom attributes, and custom messages together so controllers stay clean.
  • Comprehensive validation testing patterns: Test validation systematically using Pest datasets powered by a RequestDataProviderItem helper and an assertValidationErrors macro.
  • Coverage for real-world rule complexity: Supports array/nested validation, conditional validation, bail strategies, enum validation, and custom rule classes (e.g., a UK postcode rule).

Quick Start

Use this skill when you need to create or modify Laravel Form Request validation rules and add dataset-driven Pest tests for expected and unexpected validation errors.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: 0094-laravel-validation
Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0094-laravel-validation

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.