Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

laravel-jsvalidation

> 编程语言
Open source

Laravel Javascript Validation

1.1K stars0 likes2 views
WebsiteGitHub

About

Laravel Javascript Validation

Laravel Javascript Validation

Laravel Javascript Validation package allows to reuse your Laravel Validation Rules, Messages, FormRequest and Validators to validate forms automatically in client side without need to write any Javascript code or use HTML Builder Class.

You can validate forms automatically referencing it to your defined validations. The messages are loaded from your validations and translated according your Localization preferences.

Supported versions

  • PHP 8.2 - 8.4
  • Laravel 11.x - 13.x

Feature overview

  • Automatic creation of Javascript validation based on your Validation Rules or FormRequest, no Javascript coding required.
  • Supports other validation packages.
  • AJAX validation for ActiveURL, Unique and Exists Rules, Custom Validation Rules and other validation packages
  • Unobtrusive integration, you can use without Laravel Form Builder
  • The package uses Jquery Validation Plugin bundled in provided script.
  • Uses Laravel Localization to translate messages.

Supported Rules

Almost all Validation Rules provided by Laravel and other packages are supported.

Almost are validated in client-side using Javascript, but in some cases, the validation should to be done in server-side via AJAX:

  • ActiveURL
  • Unique
  • Exists
  • Custom Validation Rules
  • Validations provided by other packages
Unsupported Rules

Some Laravel validations are not implemented yet.

  • Present
  • DateFormat rule don't support timezone format

Getting started

The easiest way to create Javascript validations is using Laravel Form Request Validation.

Installation

Follow the Installation Guide to install the package. The default config should work out-of-box

Validating Form Request

Call JsValidator Facade in your view to validate any FormRequest

xml

    

{!! JsValidator::formRequest('App\Http\Requests\MyFormRequest') !!}

Take a look to Basic Usage or Examples to get more information.

Documentation

To get more info refer to Project Wiki

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

Laravel Javascript Validation contributors list

License

The MIT License (MIT). Please see License File for more information.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHP

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言