Laravel Validation
Validates user input against Laravel validation rules, ensuring data integrity and preventing common errors in your application.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add laravel-validation npx -- -y @trustedskills/laravel-validation
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"laravel-validation": {
"command": "npx",
"args": [
"-y",
"@trustedskills/laravel-validation"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to perform validation tasks within a Laravel application. It leverages Laravel's built-in validation features, allowing for complex rule sets and custom error messages. The agent can generate validation rules based on provided data structures or existing form requests.
When to use it
- Automating Form Validation: Generate the necessary validation rules for a new Laravel form.
- Debugging Validation Errors: Identify and correct errors in existing validation logic.
- Creating Custom Validation Rules: Develop custom validation rule classes based on specific requirements.
- Generating Form Requests: Create complete
FormRequestclasses, including validation rules and authorization logic.
Key capabilities
- Generates Laravel validation rules.
- Supports complex rule sets.
- Creates custom error messages.
- Can generate
FormRequestclasses.
Example prompts
- "Generate validation rules for a user registration form with fields: name, email, password."
- "Create a FormRequest class for an article submission form including required fields and string length limits."
- "I have this existing rule set: 'required|email'. Can you suggest improvements?"
Tips & gotchas
- Requires familiarity with Laravel's validation syntax and concepts.
- The agent’s output should be reviewed and adapted to the specific application context.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.