Skip to content

Commit bc91dca

Browse files
authored
Merge pull request laravel#4212 from laurencei/patch-1
Add string to validation
2 parents c6e3d6e + 99fca4d commit bc91dca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Http/Controllers/Auth/RegisterController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ public function __construct()
4848
protected function validator(array $data)
4949
{
5050
return Validator::make($data, [
51-
'name' => 'required|max:255',
52-
'email' => 'required|email|max:255|unique:users',
53-
'password' => 'required|min:6|confirmed',
51+
'name' => 'required|string|max:255',
52+
'email' => 'required|string|email|max:255|unique:users',
53+
'password' => 'required|string|min:6|confirmed',
5454
]);
5555
}
5656

0 commit comments

Comments
 (0)