Skip to content

Commit

Permalink
fix(console): Fix view generation makeDirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Jul 2, 2020
1 parent 82c7103 commit be70a63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Console/MakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ protected function createView()
return;
}

$this->makeDirectory($this->getViewPath());
if (! $this->files->exists($this->getViewPath())) {
$this->files->makeDirectory($this->getViewPath());
}

$this->files->put($this->getView(), $this->files->get($this->getViewStub()));
}

Expand Down

0 comments on commit be70a63

Please sign in to comment.