0.2.0 • Published 8 years ago

laravel-jQvalidation v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

jQvalidation-laravel

Extra validation rule for jQueryValidation that translate well to laravel

Documentation can be found here

Progress

While all the ruels that are present do work, I still need to add image dimensions rule and propper array validation support.

Until then I'll keep this repo's releases under 1.0

Rules

Here's an overview of all the Laravel rules and how they can be implemented.

All the linked rules can be used through this library, the textual rules are in jQuery validation by default.

LaravelParsley
accepted
active_url
after:dateDateAfter
alphaAlpha
alpha_dashAlphaDash
alpha_numAlphaNum
array
before:dateDateBefore
between:min,maxFileSizeBetween
range (number)
rangelength (string)
boolean
confirmedequalTo
dateDate
date_format:formatDateFormat
different:fieldDifferent
digits:value
digits_between:min,maxrange
dimensions
distinctDistinct
emailemail
exists:table,columnremote
file
filledrequired
imageImage
in:foo,bar,...In
in_array:anotherfieldInArray
integerinteger
ip
json
max:valuefileSizeMax
max(number)
maxlength(string)
mimetypes:text/plain,...Mimetypes
mimes:foo,bar,...FileExt
min:valuefileSizeMin
min (number)
minlength (string)
not_in:foo,bar,...NotIn
numericdigit
present
regex:patternregex
requiredrequired
required_if:anotherfield,value,...RequiredIf
required_unless:anotherfield,value,...RequiredUnless
required_with:foo,bar,...RequiredWith
required_with_all:foo,bar,...RequiredWithAll
required_without:foo,bar,...RequiredWithout
required_without_all:foo,bar,...RequiredWithoutAll
same:fieldequalTo
size:valuefileSize
string
timezone
unique:table,column,except,idColumnremote
urlurl