0.2.0 • Published 8 years ago
laravel-jQvalidation v0.2.0
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.
Laravel | Parsley |
---|---|
accepted | |
active_url | |
after:date | DateAfter |
alpha | Alpha |
alpha_dash | AlphaDash |
alpha_num | AlphaNum |
array | |
before:date | DateBefore |
between:min,max | FileSizeBetween |
range (number) | |
rangelength (string) | |
boolean | |
confirmed | equalTo |
date | Date |
date_format:format | DateFormat |
different:field | Different |
digits:value | |
digits_between:min,max | range |
dimensions | |
distinct | Distinct |
exists:table,column | remote |
file | |
filled | required |
image | Image |
in:foo,bar,... | In |
in_array:anotherfield | InArray |
integer | integer |
ip | |
json | |
max:value | fileSizeMax |
max(number) | |
maxlength(string) | |
mimetypes:text/plain,... | Mimetypes |
mimes:foo,bar,... | FileExt |
min:value | fileSizeMin |
min (number) | |
minlength (string) | |
not_in:foo,bar,... | NotIn |
numeric | digit |
present | |
regex:pattern | regex |
required | required |
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:field | equalTo |
size:value | fileSize |
string | |
timezone | |
unique:table,column,except,idColumn | remote |
url | url |