From 81603e9c55bd3c2be76bb4a0058da1489739bda1 Mon Sep 17 00:00:00 2001 From: Zennon Gosalvez Date: Wed, 25 Mar 2020 18:12:47 +0800 Subject: [PATCH] Fixes laravel route to postman collection --- src/Writing/Writer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Writing/Writer.php b/src/Writing/Writer.php index 1f815f7b..63d7edfc 100644 --- a/src/Writing/Writer.php +++ b/src/Writing/Writer.php @@ -283,7 +283,7 @@ protected function moveOutputFromSourceFolderToTargetFolder(): void $contents = str_replace('href="css/style.css"', 'href="/docs/css/style.css"', $contents); $contents = str_replace('src="js/all.js"', 'src="/docs/js/all.js"', $contents); $contents = str_replace('src="images/', 'src="/docs/images/', $contents); - $contents = preg_replace('#href="https?://.+?/docs/collection.json"#', 'href="{{ route("apidoc", ["format" => ".json"]) }}"', $contents); + $contents = preg_replace('#href="https?://.+?/docs/collection.json"#', 'href="{{ route("apidoc.json") }}"', $contents); file_put_contents("$this->outputPath/index.blade.php", $contents); } }