Skip to content

Commit

Permalink
add str replace for external_laravel with elements-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
cleeimpro committed Oct 26, 2024
1 parent da667aa commit ca019f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Writing/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ 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);
$contents = str_replace('Url="../docs/openapi.yaml"', 'Url="{{ route("' . $this->paths->outputPath('openapi', '.') . '") }}"', $contents);

file_put_contents("$this->laravelTypeOutputPath/index.blade.php", $contents);
}
Expand Down

0 comments on commit ca019f4

Please sign in to comment.