diff --git a/app/Jobs/Entity/CreateEntityPdf.php b/app/Jobs/Entity/CreateEntityPdf.php index 5c05c6e35846..d536fd17b7ff 100644 --- a/app/Jobs/Entity/CreateEntityPdf.php +++ b/app/Jobs/Entity/CreateEntityPdf.php @@ -146,7 +146,8 @@ class CreateEntityPdf implements ShouldQueue ->build(); //todo - move this to the client creation stage so we don't keep hitting this unnecessarily - // Storage::makeDirectory($path, 0775); + info("make dir => {$path}"); + //Storage::makeDirectory($path, 0775); $pdf = null; diff --git a/app/Jobs/Util/UploadAvatar.php b/app/Jobs/Util/UploadAvatar.php index b9da6dd71f23..66508bc706d5 100644 --- a/app/Jobs/Util/UploadAvatar.php +++ b/app/Jobs/Util/UploadAvatar.php @@ -37,6 +37,8 @@ class UploadAvatar implements ShouldQueue { //make dir + info("avatar dir creation => ". $this->directory); + Storage::makeDirectory($this->directory, 0775); $tmp_file = sha1(time()).'.png'; diff --git a/config/filesystems.php b/config/filesystems.php index 01a12dad13eb..26b1850eea9a 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -60,7 +60,8 @@ return [ 'public' => [ 'driver' => 'local', - 'root' => 'storage/', + 'root' => public_path('storage'), + //'root' => 'storage/', // 'root' => storage_path('app/public'), 'url' => env('APP_URL').'/storage', 'visibility' => 'public',