diff --git a/src/Code/Client.php b/src/Code/Client.php index 6c4d7c3..02c4a0f 100644 --- a/src/Code/Client.php +++ b/src/Code/Client.php @@ -76,7 +76,7 @@ public function createNewClient() $callMethodBody = 'if (static::hasMacro($method)) {'."\n " .'return $this->macroCall($method, $parameters);'."\n" .'}'."\n\n" - .'$validationClass = \'CodeDredd\\\\Soap\\\\Soap\\\\Validations\\\\LaravelSoap\\\\\''."\n " + .'$validationClass = \''.addslashes($this->codeNamespace.'\Validations\LaravelSoap\\')."'\n " .'. ucfirst(Str::camel($method))'."\n " .'. \'Validation\';'."\n" .'if (class_exists($validationClass)) {'."\n "