Create new accounts.

This commit is contained in:
Sander Dorigo
2014-06-30 15:57:05 +02:00
parent 67ef8f6be6
commit 3a7ee1a5cb
2 changed files with 41 additions and 7 deletions

View File

@@ -6,7 +6,8 @@ class Account extends Elegant
public static $rules
= [
'name' => 'required|between:100,100',
'name' => 'required|between:1,100',
'user_id' => 'required|exists:users,id'
];
public function accountType()