0046-laravel-form-requests

Community

Keep controllers slim with Form Requests

AuthorMrJmpl3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the problem of bloated Laravel controllers by centralizing validation and authorization logic into dedicated Form Request classes instead of scattering it across controller actions.

Core Features & Use Cases

  • Move authorization and validation out of controllers to keep endpoints focused on orchestration and domain intent.
  • Use expressive validation rules including rule objects (e.g., unique checks) for context-aware constraints.
  • Handle nested and complex payloads with dot-notation for arrays and deep attributes, while producing consistent error messaging.

Quick Start

Ask your AI to show how to create an UpdateProfileRequest, define authorize() and rules() (including nested fields and rule objects), and then update your controller method to call validated() instead of inline validation.

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: 0046-laravel-form-requests
Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0046-laravel-form-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 471,000+ vetted skills library on demand.