Created
August 12, 2013 12:26
-
-
Save alloyking/6210392 to your computer and use it in GitHub Desktop.
Laravel extend validator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Services\Validators; | |
class Step1 extends Validator{ | |
//rules for step1 validation | |
public static $rules = array( | |
'email' => 'required', | |
'firstname' => 'required', | |
'lastname' => 'required', | |
'system_key' => 'required|systemcheck', | |
); | |
//custom message | |
public static $messages = array( | |
'systemcheck' => 'This ID has already been registered', | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment