diff --git a/src/Writing/Writer.php b/src/Writing/Writer.php index 69db61cc..87f750af 100644 --- a/src/Writing/Writer.php +++ b/src/Writing/Writer.php @@ -178,6 +178,8 @@ protected function performFinalTasksForLaravelType(): void $contents = str_replace('href="../docs/collection.json"', 'href="{{ route("' . $this->paths->outputPath('postman', '.') . '") }}"', $contents); $contents = str_replace('href="../docs/openapi.yaml"', 'href="{{ route("' . $this->paths->outputPath('openapi', '.') . '") }}"', $contents); $contents = str_replace('url="../docs/openapi.yaml"', 'url="{{ route("' . $this->paths->outputPath('openapi', '.') . '") }}"', $contents); + // With Elements theme, we'd have paths->outputPath('openapi', '.') . '") }}"', $contents); file_put_contents("$this->laravelTypeOutputPath/index.blade.php", $contents); }