Fixes for directory creation error

This commit is contained in:
David Bomba 2020-12-04 08:22:31 +11:00
parent 20d313de71
commit 41e39fa9c4
3 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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';

View File

@ -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',