| Package Data | |
|---|---|
| Maintainer Username: | happyDemon |
| Maintainer Contact: | info@idma.ru (idma) |
| Package Create Date: | 2015-06-27 |
| Package Last Update: | 2015-09-07 |
| Home Page: | https://packagist.org/packages/happydemon/laravel-parsley |
| Language: | PHP |
| License: | Unknown |
| Last Refreshed: | 2025-10-28 03:02:13 |
| Package Statistics | |
|---|---|
| Total Downloads: | 83 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 5 |
| Total Watchers: | 2 |
| Total Forks: | 2 |
| Total Open Issues: | 3 |
Converts FormRequest rules to Parsley rules.
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',
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?
Implemented| Not implemented | -----------|-----------------| required | accepted | email | 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 | |