heavier validation for username

This commit is contained in:
Daniel Klabbers 2015-09-24 23:07:30 +02:00 committed by Franz Liedke
parent 8e7b056b84
commit b9a63c48d6

View File

@ -55,7 +55,13 @@ class User extends Model
* @var array
*/
protected $rules = [
'username' => 'required|alpha_dash|unique',
'username' => [
'required',
'alpha_dash',
'unique',
'min:3',
'max:30',
],
'email' => 'required|email|unique',
'password' => 'required',
'join_time' => 'date',