|
@@ -48,9 +48,9 @@ class RegisterController extends Controller
|
|
protected function validator(array $data)
|
|
protected function validator(array $data)
|
|
{
|
|
{
|
|
return Validator::make($data, [
|
|
return Validator::make($data, [
|
|
- 'name' => 'required|max:255',
|
|
|
|
- 'email' => 'required|email|max:255|unique:users',
|
|
|
|
- 'password' => 'required|min:6|confirmed',
|
|
|
|
|
|
+ 'name' => 'required|string|max:255',
|
|
|
|
+ 'email' => 'required|string|email|max:255|unique:users',
|
|
|
|
+ 'password' => 'required|string|min:6|confirmed',
|
|
]);
|
|
]);
|
|
}
|
|
}
|
|
|
|
|