diff --git a/src/StorageDrivers/Database/DatabaseStorageDriver.php b/src/StorageDrivers/Database/DatabaseStorageDriver.php index e51935c0..55e9f65a 100644 --- a/src/StorageDrivers/Database/DatabaseStorageDriver.php +++ b/src/StorageDrivers/Database/DatabaseStorageDriver.php @@ -92,7 +92,7 @@ class DatabaseStorageDriver implements StorageDriver public function updateTenant(Tenant $tenant): void { Tenants::find($tenant->id)->putMany($tenant->data); - + $original_domains = Domains::where('tenant_id', $tenant->id)->get()->map(function ($model) { return $model->domain; })->toArray(); diff --git a/src/Tenant.php b/src/Tenant.php index e4aa3888..14a2be01 100644 --- a/src/Tenant.php +++ b/src/Tenant.php @@ -291,7 +291,7 @@ class Tenant implements ArrayAccess public function __call($method, $parameters) { if (Str::startsWith($method, 'with')) { - return $this->with(Str::snake(substr($method, 4)), $parameters[0]); + return $this->with(Str::snake(substr($method, 4)), $parameters[0]); } // todo throw some exception?