Skip to content

Commit 81603e9

Browse files
author
Zennon Gosalvez
committed
Fixes laravel route to postman collection
1 parent ac9beb4 commit 81603e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Writing/Writer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ protected function moveOutputFromSourceFolderToTargetFolder(): void
283283
$contents = str_replace('href="css/style.css"', 'href="/docs/css/style.css"', $contents);
284284
$contents = str_replace('src="js/all.js"', 'src="/docs/js/all.js"', $contents);
285285
$contents = str_replace('src="images/', 'src="/docs/images/', $contents);
286-
$contents = preg_replace('#href="https?://.+?/docs/collection.json"#', 'href="{{ route("apidoc", ["format" => ".json"]) }}"', $contents);
286+
$contents = preg_replace('#href="https?://.+?/docs/collection.json"#', 'href="{{ route("apidoc.json") }}"', $contents);
287287
file_put_contents("$this->outputPath/index.blade.php", $contents);
288288
}
289289
}

0 commit comments

Comments
 (0)