-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure the compiled view directory exists
- Loading branch information
1 parent
90fbaa7
commit 545875f
Showing
3 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,9 +153,11 @@ public function compile($path = null) | |
$contents = $this->appendFilePath($contents); | ||
} | ||
|
||
$this->files->put( | ||
$this->getCompiledPath($this->getPath()), $contents | ||
); | ||
$compiledPath = $this->getCompiledPath($this->getPath()); | ||
|
||
$this->ensureCompiledDirectoryExists($compiledPath); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
GrahamCampbell
Author
Member
|
||
|
||
$this->files->put($compiledPath, $contents); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
there is a method on Filesystem to ensure that a directory exists, i wonder why you didn't use it ?
$this->files->ensureDirectoryExists($compiledPath, 0777);