-
-
Notifications
You must be signed in to change notification settings - Fork 175
Laravel 5.5 installation
Aristheo Lacdao edited this page Jun 14, 2018
·
1 revision
To install this package add proengsoft/laravel-jsvalidation:>2.1.0
in your composer.json
. You should change post-update-cmd scripts section to ensure that the Javascript assets are updated.
{
"require": {
"laravel/framework": "5.5.*",
...
"proengsoft/laravel-jsvalidation": ">2.1.0"
},
...
"scripts": {
"post-update-cmd": [
....
"php artisan vendor:publish --provider=\"Proengsoft\\JsValidation\\JsValidationServiceProvider\" --tag=public --force"
],
},
}
Run composer update
command to install the package.
$ composer update
To configure Laravel, simply edit /config/app.php
file and add the JsValidationServiceProvider
and JsValidator
alias as below:
'providers' => [
...
Proengsoft\JsValidation\JsValidationServiceProvider::class,
],
'alias' => [
...
'JsValidator' => Proengsoft\JsValidation\Facades\JsValidatorFacade::class,
],
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"