Add user email unique to CreateUserRequest only
This commit is contained in:
parent
1b5107a085
commit
2bcfe76289
@ -25,6 +25,8 @@ class CreateUserRequest extends FormRequest
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return User::$rules;
|
||||
$rules = User::$rules;
|
||||
$rules['email'] .= '|unique:users,email';
|
||||
return $rules;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user