浏览代码

Use correct output path for Laravel type

shalvah 3 年之前
父节点
当前提交
48b2b90580
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/Writing/Writer.php

+ 2 - 1
src/Writing/Writer.php

@@ -19,7 +19,7 @@ class Writer
 
     private string $staticTypeOutputPath;
 
-    private string $laravelTypeOutputPath = 'resources/views/scribe';
+    private string $laravelTypeOutputPath;
     protected array $generatedFiles = [
         'postman' => null,
         'openapi' => null,
@@ -37,6 +37,7 @@ class Writer
     public function __construct(DocumentationConfig $config = null, $docsName = 'scribe')
     {
         $this->markdownOutputPath = ".{$docsName}"; //.scribe by default
+        $this->laravelTypeOutputPath = "resources/views/$docsName";
         // If no config is injected, pull from global. Makes testing easier.
         $this->config = $config ?: new DocumentationConfig(config($docsName));