소스 검색

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)