requests

Official

Enforce Form Request validation for inputs.

Authorcodebar-ag
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Form Request Validation centralizes input validation away from controllers, preventing validation logic from scattering across actions and improving security and maintainability.

Core Features & Use Cases

  • Dedicated Form Requests live under app/Http/Requests and group validation by domain (e.g., Auth, Invoices).
  • Methods authorize(), rules(), and messages() provide clear access control and user-friendly errors, with PHPDoc annotations for static analysis.
  • Automatic validation: Laravel applies the FormRequest before the controller action, returning validation errors when needed.
  • Use Case: When creating or updating resources, replace inline validation with a dedicated request class to enforce consistent rules.

Quick Start

Create a Form Request class for the target resource, inject it into the controller method, and trigger the request to validate input automatically.

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: requests
Download link: https://github.com/codebar-ag/coding-guidelines/archive/main.zip#requests

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 223,000+ vetted skills library on demand.