Skip to content

Commit 5cab045

Browse files
authored
Merge pull request #714 from zgosalvez/fix-laravel-postman
Fixes Laravel route to postman collection
2 parents ac9beb4 + 81603e9 commit 5cab045

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)