Download the PHP package solbeg/laravel-vue-validation without Composer
On this page you can find all versions of the php package solbeg/laravel-vue-validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download solbeg/laravel-vue-validation
More information about solbeg/laravel-vue-validation
Files in solbeg/laravel-vue-validation
Package laravel-vue-validation
Short Description Extends Bootstrapper package. It automatically converts Laravel's request rules into Vee's rules.
License
Informations about the package laravel-vue-validation
PACKAGE IS NOT MAINTAINED, USE AT YOUR OWN RISK
SolbegLaravelVueValidation
It is plugin for Laravel applications that use Vee-Validate plugin for front validation.
It automatically converts laravel's FormRequest rules to Vee rules. It also passes errors messages to Vee validator.
So you may write your rules once in laravel application, so the same will be used in front side too.
Requirements
- PHP >= 5.6.4
- Laravel Framework 5.3.*
- Vue 1.x or 2.x
- Vee-Validate Vue plugin 1.x or 2.x
Installation
Install plugin using composer:
After you have installed this vendor, add the following lines.
In your Laravel config file config/app.php
in the providers
array
add the service provider for this package.
And add the facade of this package to the aliases
array.
Publish assets for this vendor:
Connect JS file for this plugin in your layout. Note! This JS file must be included after Vue & Vee JS files:
Add the following JS code in your layout, so the Vue will use this plugin for validating:
Usage
In your blade template:
All versions of laravel-vue-validation with dependencies
laravel/framework Version 5.8.*
laravelcollective/html Version 5.8.*
illuminate/support Version ~5
illuminate/config Version ~5
illuminate/routing Version ~5
twbs/bootstrap Version ~3
symfony/http-foundation Version *