diff --git a/src/LaravelRequestDocs.php b/src/LaravelRequestDocs.php index 17aff9b..0c3faf6 100644 --- a/src/LaravelRequestDocs.php +++ b/src/LaravelRequestDocs.php @@ -362,7 +362,7 @@ public function lrdDocComment(string $docComment): string public function appendExample(Doc $doc): void { try { - $modelName = Str::replaceMatches( + $modelName = preg_replace( config('request-docs.pattern_model_from_controller_name'), '', class_basename($doc->getController())