06.10.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 499<br />

active_url<br />

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

after:date<br />

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

strtotime PHP function:<br />

1 'start_date' => 'required|date|after:tomorrow'<br />

Instead of passing a date string to be evaluated by strtotime, you may specify another field to<br />

compare against the date:<br />

1 'finish_date' => 'required|date|after:start_date'<br />

alpha<br />

The field under validation must be entirely alphabetic characters.<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.

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

Saved successfully!

Ooh no, something went wrong!