diff --git a/src/App/Http/Controllers/UsersManagementController.php b/src/App/Http/Controllers/UsersManagementController.php index 211e13f..0e6bb2a 100755 --- a/src/App/Http/Controllers/UsersManagementController.php +++ b/src/App/Http/Controllers/UsersManagementController.php @@ -91,7 +91,7 @@ public function create() public function store(Request $request) { $rules = [ - 'name' => 'required|string|max:255|unique:users|alpha_num', + 'name' => 'required|string|max:255|unique:users|alpha_dash', 'email' => 'required|email|max:255|unique:users', 'password' => 'required|string|confirmed|min:6', 'password_confirmation' => 'required|string|same:password', @@ -200,7 +200,7 @@ public function update(Request $request, $id) ]; if ($emailCheck) { - $rules['email'] = 'required|email|max:255|unique:users|alpha_num'; + $rules['email'] = 'required|email|max:255|unique:users|alpha_dash'; } if ($passwordCheck) {