From 0be810b650e8b136874022abb8a54fee4fc94280 Mon Sep 17 00:00:00 2001 From: Giannis Gasteratos Date: Fri, 11 Oct 2019 21:14:33 +0300 Subject: [PATCH] Create theme command will set directory permissions --- src/Commands/createTheme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/createTheme.php b/src/Commands/createTheme.php index 1653617..99e829d 100644 --- a/src/Commands/createTheme.php +++ b/src/Commands/createTheme.php @@ -31,8 +31,8 @@ public function handle() $assetPath = $this->anticipate("Where will assets be located?", [$themeName], $themeName); // Calculate Absolute paths & check if they exist - $viewsPathFull = themes_path($viewsPath); - $assetPathFull = public_path($assetPath); + $viewsPathFull = themes_path($viewsPath, 0755, true); + $assetPathFull = public_path($assetPath, 0755, true); if ($this->files->exists($viewsPathFull)) { $this->error("Error: Folder already exists: $viewsPathFull");