mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
815 B
815 B
| title | description | extends | section |
|---|---|---|---|
| Global Cache/Storage/Assets/... | Global Cache/Storage/Assets/... | _layouts.documentation | content |
Global Cache/Storage/Assets/...
Global Cache
Use the GlobalCache facade, or the global_cache() helper.
Global Storage
Create a disk and don't add it to tenancy.filesystem.disks.
Global Assets
Use the global_asset() helper.
Global Database
Create a new connection and use it like DB::connection($connectionName)->table('foo')->where(...)
Global Redis
Create a new connection, don't put it into tenancy.redis.prefixed_connectoins, and use it like Redis::connection('foo')->get('bar')
Global Queues/Jobs
Coming soon.