fluent-validation

Build type-safe fluent Laravel validation rules for FormRequests and Livewire.

214|2|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/SanderMuller/laravel-fluent-validation --skill fluent-validation-sandermuller
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fluent-validation
Source: https://github.com/SanderMuller/laravel-fluent-validation/tree/main/resources/boost/skills/fluent-validation
Command: npx skills add https://github.com/SanderMuller/laravel-fluent-validation --skill fluent-validation-sandermuller

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Builds type-safe, fluent Laravel validation rules for FormRequests, Livewire components, and Validators to replace error-prone string rule syntax and improve IDE support.

Core Features & Use Cases

  • FluentRule builders for string, numeric, date, array and more, with per-rule modifiers and inline messages
  • IDE autocompletion, refactoring-friendly rule composition, and seamless FormRequest/Livewire integration
  • Use with HasFluentRules/HasFluentValidation to optimize wildcard arrays, batch DB validation, and compose complex rule sets

Quick Start

Install the FluentRule package and start replacing string validation rules with fluent, type-safe builders in FormRequests, Livewire components, and Validators.

Frequently Asked Questions about fluent-validation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write type-safe Laravel validation rules instead of using string syntax?

Type-safe Laravel validation rules can be built using fluent builders with per-rule modifiers and inline messages. This approach replaces string rule syntax while providing IDE autocompletion and refactoring-friendly rule composition for FormRequests and Livewire components.

Can I use fluent validation rules with Livewire components?

Yes, fluent validation rules integrate seamlessly with Livewire components. You can build type-safe rule sets and apply them directly within your Livewire component validation logic to improve IDE support and reduce errors.

What is the best way to handle validation for large wildcard arrays in Laravel?

The best way to handle validation for large wildcard arrays is using HasFluentRules and HasFluentValidation traits. These optimize wildcard array validation and enable batch database validation for improved performance in complex rule sets.

How do I refactor existing string-based Laravel validation rules into a fluent format?

You can refactor string-based Laravel validation rules by replacing them with FluentRule builders. These builders support string, numeric, date, and array types, allowing you to compose complex rule sets with inline messages and macro support.

Does fluent Laravel validation support custom rule macros and composition?

Yes, fluent Laravel validation supports custom rule macros and refactoring-friendly rule composition. You can compose complex rule sets using RuleSet and FluentRule builders to create reusable validation logic across multiple FormRequests.