在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:proengsoft/laravel-jsvalidation开源软件地址:https://github.com/proengsoft/laravel-jsvalidation开源编程语言:PHP 68.6%开源软件介绍:Laravel Javascript ValidationLaravel 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 versionsLaravel 6.x - 8.x Feature overview
Supported RulesAlmost 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:
Unsupported RulesSome Laravel validations are not implemented yet.
Getting startedThe easiest way to create Javascript validations is using Laravel Form Request Validation. InstallationFollow the Installation Guide to install the package. The default config should work out-of-box Validating Form RequestCall JsValidator Facade in your view to validate any FormRequest <form>
<!-- ... My form stuff ... -->
</form>
<!-- Javascript Requirements -->
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js"></script>
<!-- Laravel Javascript Validation -->
<script type="text/javascript" src="{{ asset('vendor/jsvalidation/js/jsvalidation.js')}}"></script>
{!! JsValidator::formRequest('App\Http\Requests\MyFormRequest') !!} Take a look to Basic Usage or Examples to get more information. DocumentationTo get more info refer to Project Wiki ChangelogPlease see CHANGELOG for more information on what has changed recently. ContributingPlease see CONTRIBUTING for details. CreditsLaravel Javascript Validation contributors list LicenseThe MIT License (MIT). Please see License File for more information. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论