Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 2 | public function rules() |
|
26 | { |
||
27 | return [ |
||
28 | 2 | 'role_id' => 'required|numeric|exists:user_role_types,role_id', |
|
29 | 'username' => 'required|unique:users|regex:/^[a-zA-Z0-9_]*$/', |
||
30 | 'first_name' => 'required|string', |
||
31 | 'last_name' => 'required|string', |
||
32 | 'email' => 'required|email|unique:users', |
||
33 | ]; |
||
36 |