Created
January 10, 2015 17:02
-
-
Save nsanden/381ce01136acea831b4f to your computer and use it in GitHub Desktop.
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
public function rules() | |
{ | |
return [ | |
['username', 'required'], | |
['username', 'unique', 'message' => 'This username has already been taken.'], | |
['username', 'string', 'min' => 2, 'max' => 255], | |
['email', 'required'], | |
['email', 'email'], | |
['email', 'unique', 'message' => 'This email address has already been taken.'], | |
['password', 'string', 'min' => 6], | |
['fname', 'required'], | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment