Skip to content

samuelfa/laravel-jsvalidation

 
 

Repository files navigation

Laravel 5 Javascript Validation

Latest Version Build Status Code Coverage Quality Score Total Downloads

Laravel Javascript Validation allows to reuse your Laravel Validation Rules, Messages, FormRequest and Validators to validate forms transparently 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 validators and translated according your Localization preferences.

All Laravel Validation Rules and Custom Validation Rules are supported. ActiveURL, Unique, Exists and Custom Validation Rules are validated automatically via Ajax.

The JsValidator created by the Facade inherits from Laravel Validation, so you can use all methods and procedures that Laravel provides to setup your validations. Also class and rule syntax are the same that Laravel Validation class implements. When the instance is printed in a view the Javascript code needed to validate your form is rendered to the page.

The Javascript validations are made using JQuery Validation Plugin, that is compiled into javascript in the package.

Upgrade notice

If you are upgrading this package from release older than v1.1.1 (2015-08-15) follow the [Upgrade Guide] (https://github.com/proengsoft/laravel-jsvalidation/wiki/Installation#upgrade-from-previous-versions) and update your composer.json file to make sure that your Javascript assets are updated correctly.

Known issues
  • This package is not compatible with other validation packages
  • DateFormat rule don't support timezone format

Documentation

Table of Contents



License

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

About

Laravel 5 Javascript Validation

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 60.9%
  • JavaScript 39.1%