Skip to content

Commit

Permalink
Use correct output path for Laravel type
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed May 22, 2022
1 parent 4ff0d7f commit 48b2b90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Writing/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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));

Expand Down

0 comments on commit 48b2b90

Please sign in to comment.