fluent-validation-livewire

Verify FluentRule-based Livewire validations use the HasFluentValidation trait.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Livewire components frequently struggle to align FluentRule objects with Laravel's native validation when the HasFluentValidation trait is missing or misused, causing misidentified rules, labels, and wildcard handling.

Core Features & Use Cases

  • Enforces using the HasFluentValidation trait in Livewire components and Livewire Form objects.
  • Ensures FluentRule objects are compiled to Laravel's validation format before validation runs.
  • Supports Livewire validation flows including validate(), rules() methods, and assertion-based tests (assertHasErrors).
  • Improves label and message extraction and proper expansion of nested or wildcard rules for consistent user feedback.

Quick Start

Verify a Livewire component uses the HasFluentValidation trait with FluentRule rules to ensure proper validation behavior.

Frequently Asked Questions about fluent-validation-livewire

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

FAQPage Schema
How do I use FluentRule validation in Livewire components correctly?

FluentRule validation in Livewire components requires applying the HasFluentValidation trait to ensure FluentRule objects are compiled to Laravel's native validation format before execution.

Why does my Livewire validation fail when using FluentRule objects?

Livewire validation fails when the HasFluentValidation trait is missing or misused, causing misidentified rules, labels, and improper wildcard handling during the validation process.

Does the HasFluentValidation trait work with Livewire Form objects?

The HasFluentValidation trait works with both Livewire components and Livewire Form objects, enforcing FluentRule usage in rules() methods, label extraction, and wildcard expansion.

How do I test Livewire validation rules that use FluentRule objects?

Testing FluentRule validation in Livewire involves using assertion-based tests like assertHasErrors, which exercise validation rules compiled through the HasFluentValidation trait.

What is the best way to handle nested or wildcard validation rules in Livewire?

Handling nested or wildcard validation rules in Livewire requires the HasFluentValidation trait to properly expand wildcard rules and extract labels for consistent user feedback.

Do I need the HasFluentValidation trait for Livewire validate() methods?

The HasFluentValidation trait is required for Livewire validate() methods to ensure FluentRule objects are correctly compiled to Laravel's validation format and properly wired across components.