New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

happydemon/laravel-parsley

Converts FormRequest rules to Parsley rules
83 5
Install
composer require happydemon/laravel-parsley
Latest Version:0.4.1
PHP:>=5.4.0
Laravel:5
Last Updated:Sep 7, 2015
Links: GitHub  ·  Packagist
Maintainer: happyDemon

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
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

Related Packages

madnh/laravel-parsley

Converts FormRequest rules to Parsley rules

552 0
idma/laravel-parsley

Converts FormRequest rules to Parsley rules

50 3
ozanmuyes/paraveley

Automatically generate Parsley rules depending on Laravel's FormRequest.

23 2
laravie/html

HTML and Form Builders for the Laravel Framework

187,624 36
laraplus/form

A powerful package for building forms in Laravel.

3,640 4

Version History

Version Released PHP Laravel License
0.4.1 >=5.4.0 ~5.0
0.4 >=5.4.0 ~5.0
v0.3 >=5.4.0 ~5.0
v0.2 >=5.4.0 ~5.0
v0.1 >=5.4.0 ~5.0