diff --git a/src/Database/Concerns/HasDataColumn.php b/src/Database/Concerns/HasDataColumn.php deleted file mode 100644 index cf67b832..00000000 --- a/src/Database/Concerns/HasDataColumn.php +++ /dev/null @@ -1,15 +0,0 @@ -getAttribute($this->getTenantKeyName()); } + /** Get the current tenant. */ public static function current(): static|null { return tenant(); } - /** @throws TenancyNotInitializedException */ + /** + * Get the current tenant or throw an exception if tenancy is not initialized. + * + * @throws TenancyNotInitializedException + */ public static function currentOrFail(): static { return static::current() ?? throw new TenancyNotInitializedException;