diff --git a/docs/source/v2/tenant-manager.blade.md b/docs/source/v2/tenant-manager.blade.md index a7edd81..a5ca80d 100644 --- a/docs/source/v2/tenant-manager.blade.md +++ b/docs/source/v2/tenant-manager.blade.md @@ -28,7 +28,6 @@ To call methods on `TenantManager`, you may use the `tenancy()` helper or the `T ### Find tenant by domain - ```php >>> tenancy()->findByDomain('bar.localhost') => Stancl\Tenancy\Tenant {#3091 @@ -41,6 +40,14 @@ To call methods on `TenantManager`, you may use the `tenancy()` helper or the `T } ``` +### Find tenant by arbitrary key + +> Note: Only the DB storage driver implements this feature. +```php +tenancy()->findBy('email', $email); +tenancy()->findByEmail($email); +``` + ### Getting the current tenant One more way to get the current [tenant]({{ $page->link('tenants') }}) is to call `getTenant()` on `TenantManager`: diff --git a/docs/source/v2/tenant-storage.blade.md b/docs/source/v2/tenant-storage.blade.md index 50512fc..696d20f 100644 --- a/docs/source/v2/tenant-storage.blade.md +++ b/docs/source/v2/tenant-storage.blade.md @@ -46,4 +46,10 @@ Note that $key has to be a string or an array with string keys. The value(s) can "a" => "b", "c" => "d", ] -``` \ No newline at end of file +``` + +To delete keys from the storage, you may use these methods: +```php +$tenant->deleteKey($key) +$tenant->deleteKeys(['foo', 'bar']); +```