Last active
December 20, 2015 00:09
-
-
Save mateusgf/6039173 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
class User extends Eloquent { | |
public static $rules = array( | |
'username'=>'required|unique:users|alpha_dash|min:4', | |
'password'=>'required|alpha_num|between:4,8|confirmed', | |
'password_confirmation'=>'required|alpha_num|between:4,8' | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment