29.07.2016 Views

laravel-5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Validation 382<br />

alpha_dash<br />

The field under validation may have alpha-numeric characters, as well as dashes and underscores.<br />

alpha_num<br />

The field under validation must be entirely alpha-numeric characters.<br />

array<br />

The field under validation must be a PHP array.<br />

before:date<br />

The field under validation must be a value preceding the given date. The dates will be passed into<br />

the PHP strtotime function.<br />

between:min,max<br />

The field under validation must have a size between the given min and max. Strings, numerics, and<br />

files are evaluated in the same fashion as the size rule.<br />

boolean<br />

The field under validation must be able to be cast as a boolean. Accepted input are true, false, 1,<br />

0, "1", and "0".<br />

confirmed<br />

The field under validation must have a matching field of foo_confirmation. For example, if the<br />

field under validation is password, a matching password_confirmation field must be present in the<br />

input.<br />

date<br />

The field under validation must be a valid date according to the strtotime PHP function.<br />

date_format:format<br />

The field under validation must match the given format. The format will be evaluated using the PHP<br />

date_parse_from_format function. You should use either date or date_format when validating a<br />

field, not both.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!