Download the PHP package happydemon/laravel-parsley without Composer
On this page you can find all versions of the php package happydemon/laravel-parsley. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download happydemon/laravel-parsley
More information about happydemon/laravel-parsley
Files in happydemon/laravel-parsley
Package laravel-parsley
Short Description Converts FormRequest rules to Parsley rules
License
Informations about the package laravel-parsley
laravel-parsley
Converts FormRequest rules to Parsley rules.
Install
If you have previously set up LaravelCollective/Html
or Illuminate/Html
you can remove its service provider from app/config
in app/config
add the following under service providers:
HappyDemon\LaravelParsley\LaravelParsleyServiceProvider
If you haven't already, add these facades:
'Form' => 'Collective\Html\FormFacade',
'Html' => 'Collective\Html\HtmlFacade',
Useage
All that's needed is for you to supply the name of the FormRequest
in the request
key when opening a form.
Form::open(['request' => 'YourFormRequestClass'])
Form::model(['request' => 'YourFormRequestClass'])
Lastly you should include parsley's scripts on the page and activate parsley for your form.
easy enough don't you think?
Validation rules
Implemented | Not implemented |
---|---|
required | accepted |
after:(date) | |
min | before:(date) |
max | before:(date) |
between | date_format |
integer | different |
url | in |
alpha_num | not_in |
alpha_dash | ip_address |
alpha | |
regex | |
confirmed |
All versions of laravel-parsley with dependencies
illuminate/support Version ~5.0
laravelcollective/html Version ~5.0
illuminate/translation Version ~5.0