proengsoft/laravel-jsvalidation
Reuse Laravel validation rules, messages, and FormRequests for automatic client-side form validation—no custom JS required. Built on jQuery Validation with localization support, plus AJAX validation for unique/exists/active_url and custom rules. Supports Laravel 11–13, PHP 8.2–8.4.
required, email, min) to client-side validation, reducing technical debt and improving consistency.FormRequest classes, cutting development time by 30–50% for validation-heavy forms (e.g., user registration, checkout flows).unique or exists, providing instant feedback (e.g., username availability checks) without full page reloads.Adopt When:
confirmed, mimes, array).unique or exists without building custom endpoints.Look Elsewhere If:
"This package lets us reuse our existing Laravel validation rules—already tested and localized—to power real-time form validation on the frontend, cutting development time by 40% and improving user experience with instant feedback. For example, a user signing up can see if a username is taken before submitting, reducing drop-offs. It’s a low-risk, high-reward way to modernize our forms without hiring additional frontend engineers. The MIT license and active maintenance (last release: 2026) ensure long-term viability."
*"Problem: We’re duplicating validation logic between Laravel backend and JavaScript frontend, creating bugs and maintenance overhead.
Solution: This package syncs Laravel’s FormRequest validation to the client side using jQuery Validation Plugin. Key benefits:
FormRequest class in Blade templates.unique, exists, and custom rules via backend calls.dateFormat with timezones) aren’t supported client-side.
Next Steps: Pilot on our user registration form to measure UX improvements and dev time saved."**"Why This?
// Laravel FormRequest
public function rules() { return ['email' => 'required|email']; }
<!-- Blade template (no JS needed) -->
{!! JsValidator::formRequest('App\Http\Requests\RegisterRequest') !!}
unique:users,email work client-side via AJAX.present, dateFormat with timezones).
How to Start:composer require proengsoft/laravel-jsvalidation.{!! JsValidator::formRequest('YourRequest') !!} in forms.
Docs: Wiki has examples for nested forms, custom messages, and AJAX rules."*How can I help you explore Laravel packages today?