-
-
Notifications
You must be signed in to change notification settings - Fork 174
Laravel 5.7 and above installation
Kieran edited this page Apr 26, 2020
·
1 revision
$ composer require proengsoft/laravel-jsvalidation:^3.0
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"
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