"required|string|max:50", "username" => "required|string|regex:/^\S*$/u|min:5|unique:users,username", "role_id" => "required|numeric", ]; } }