Skip to content

Configuration

Alex Safian edited this page Apr 23, 2018 · 18 revisions

The package uses Jquery Validation Plugin bundled into jsvalidation.js to perform Laravel Validations. You must include it in your views after jQuery.

 <!-- Scripts -->
 <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>

The package works out of box with default settings if you are using Bootstrap. If it isn't your case, you should modify the package view and settings.