Skip to content

Laravel 5.7 and above installation

Kieran edited this page Apr 26, 2020 · 1 revision

Latest Stable Version Latest Unstable Version Total Downloads License

Require dependency

$ composer require proengsoft/laravel-jsvalidation:^3.0

Publish assets

Also you need to publish configuration file, Javascript assets and views by running the following Artisan commands.

$ php artisan vendor:publish --provider="Proengsoft\JsValidation\JsValidationServiceProvider"

Change bootstrap version

By default we use bootstrap 4, you may want to change the version of bootstrap in config/jsvalidation.php

'view' => 'jsvalidation::bootstrap4',

Keep in mind to copy your files using mix, so add in webpack.mix.js file

mix.copy('vendor/proengsoft/laravel-jsvalidation/public/js/jsvalidation.min.js', 'public/vendor/jsvalidation/js/');

and add these files to .gitignore to prevent them being tracked

/public/vendor
Clone this wiki locally