2017 © Pedro Peláez
 

library laravel-parsley

Converts FormRequest rules to Parsley rules

image

cpk/laravel-parsley

Converts FormRequest rules to Parsley rules

  • Tuesday, October 31, 2017
  • by cuipapknight
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

laravel-parsley

Converts FormRequest rules to Parsley rules. Build on Madnh library, (*1)

Install

If you have previously set up LaravelCollective/Html or Illuminate/Html you can remove its service provider from app/config, (*2)

in app/config add the following under service providers:, (*3)

HappyDemon\LaravelParsley\LaravelParsleyServiceProvider, (*4)

If you haven't already, add these facades:, (*5)

'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., (*6)

Form::open(['request' => 'YourFormRequestClass'])
Form::model(['request' => 'YourFormRequestClass'])

Lastly you should include parsley's scripts on the page and activate parsley for your form., (*7)

easy enough don't you think?, (*8)

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

The Versions

31/10 2017

dev-master

9999999-dev

Converts FormRequest rules to Parsley rules

  Sources   Download

The Requires

 

by cpk

laravel form html laravel 5 parsley parsleyjs collective