diff --git a/src/Bucket.php b/src/Bucket.php index d4d3ac4..4490929 100644 --- a/src/Bucket.php +++ b/src/Bucket.php @@ -111,11 +111,11 @@ public function createBucket(string $name, Credentials $credentials): self try { $client->createBucket([ - 'Bucket' => $name, + 'Bucket' => $this->bucketName, ]); // Update Tenant - $this->tenant->tenant_bucket = $name; + $this->tenant->tenant_bucket = $this->bucketName; $this->tenant->save(); } catch (AwsException $e) { $this->e = $e; @@ -155,7 +155,7 @@ public function deleteBucket(string $name, Credentials $credentials): self ]); } catch (AwsException $e) { $this->e = $e; - throw_if(config('app.debug'), $e); + throw_if(config('app.debug', false), $e); Log::critical($this->getErrorMessage()); }