From 33943b6a0e7033b964cd1d97a4b10cd36c2f0a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 12 Oct 2019 22:06:05 +0200 Subject: [PATCH] h2 -> h3 --- docs/source/v2/central-app.blade.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/source/v2/central-app.blade.md b/docs/source/v2/central-app.blade.md index 4fbed91..6a2b7fc 100644 --- a/docs/source/v2/central-app.blade.md +++ b/docs/source/v2/central-app.blade.md @@ -21,28 +21,28 @@ However, since you don't want routes related to the app on your main domain and To use central things (databases/caches/Redis connections/filesystems/...) on special places of your tenant app, you may do the following. -## Central database {#central-database} +### Central database {#central-database} Create a new connection and use it like `DB::connection($connectionName)->table('foo')->where(...)` If you want to use models, create a `getConnectionName()` method that returns the name of the central connection -## Central redis {#central-redis} +### Central redis {#central-redis} Create a new connection, *don't* put it into `tenancy.redis.prefixed_connections`, and use it like `Redis::connection('foo')->get('bar')` -## Central cache {#central-cache} +### Central cache {#central-cache} Use the `GlobalCache` facade, or the `global_cache()` helper. -## Central storage {#central-storage} +### Central storage {#central-storage} Create a disk and *don't* add it to `tenancy.filesystem.disks`. -## Central assets {#central-assets} +### Central assets {#central-assets} Use the `global_asset()` helper. -## Central queues {#central-queues} +### Central queues {#central-queues} Coming soon.