tenancy-docs/docs/source/v2/global-stuff.blade.md
2019-09-30 18:51:26 +02:00

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.