浏览代码

Fix getting Postman base URL

shalvah 4 年之前
父节点
当前提交
58f8840af1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Writing/PostmanCollectionWriter.php

+ 1 - 1
src/Writing/PostmanCollectionWriter.php

@@ -26,7 +26,7 @@ class PostmanCollectionWriter
     public function __construct(DocumentationConfig $config = null)
     {
         $this->config = $config ?: new DocumentationConfig(config('scribe', []));
-        $this->baseUrl = $this->config->get('postman.base_url', $this->config->get('base_url'));
+        $this->baseUrl = ($this->config->get('postman.base_url') ?: $this->config->get('base_url')) ?: config('app.url');
     }
 
     public function generatePostmanCollection(Collection $groupedEndpoints)