|
@@ -156,7 +156,7 @@ class Writer
|
|
|
if (!is_dir($this->laravelTypeOutputPath)) {
|
|
|
mkdir($this->laravelTypeOutputPath, 0777, true);
|
|
|
}
|
|
|
- $publicDirectory = app()->get('public_path');
|
|
|
+ $publicDirectory = app()->get('path.public');
|
|
|
if (!is_dir("$publicDirectory/vendor/scribe")) {
|
|
|
mkdir("$publicDirectory/vendor/scribe", 0777, true);
|
|
|
}
|
|
@@ -167,7 +167,7 @@ class Writer
|
|
|
|
|
|
// Move assets from public/docs to public/vendor/scribe
|
|
|
// We need to do this delete first, otherwise move won't work if folder exists
|
|
|
- Utils::deleteDirectoryAndContents("$publicDirectory/vendor/scribe/");
|
|
|
+ Utils::deleteDirectoryAndContents("$publicDirectory/vendor/scribe/", "/");
|
|
|
rename("{$this->staticTypeOutputPath}/", "$publicDirectory/vendor/scribe/");
|
|
|
|
|
|
$contents = file_get_contents("$this->laravelTypeOutputPath/index.blade.php");
|