We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 48-59 (lines=12) @@ | ||
| 45 | * @param array $data |
|
| 46 | * @return \Illuminate\Contracts\Validation\Validator |
|
| 47 | */ |
|
| 48 | protected function validator(array $data) |
|
| 49 | { |
|
| 50 | return Validator::make( |
|
| 51 | $data, [ |
|
| 52 | 'name' => 'required|max:255', |
|
| 53 | 'phone' => 'required|max:255|unique:users', |
|
| 54 | 'email' => 'required|email|max:255|unique:users', |
|
| 55 | 'username' => 'required|max:20', |
|
| 56 | 'password' => 'required|min:8|confirmed', |
|
| 57 | ] |
|
| 58 | ); |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * Create a new user instance after a valid registration. |
|
| @@ 12-21 (lines=10) @@ | ||
| 9 | * |
|
| 10 | * @return array |
|
| 11 | */ |
|
| 12 | public function rules() |
|
| 13 | { |
|
| 14 | return [ |
|
| 15 | 'name' => 'required', |
|
| 16 | 'username' => 'required', |
|
| 17 | 'email' => 'required', |
|
| 18 | 'password' => 'required', |
|
| 19 | 'phone' => 'required', |
|
| 20 | ]; |
|
| 21 | } |
|
| 22 | } |
|
| 23 | ||