Converts FormRequest rules to Parsley rules
Open Issues: 3
- php: >=5.4.0
- illuminate/support: ~5.0
- illuminate/translation: ~5.0
- laravelcollective/html: ~5.0
- idma/laravel-parsley: 0.*
Converts FormRequest rules to Parsley rules.
If you have previously set up
Illuminate/Html you can remove its service provider from
app/config add the following under service providers:
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?