From e8189a9af2375c3a8d10c26bf442f85fd6848686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sun, 22 Sep 2019 19:43:32 +0200 Subject: [PATCH] Global stuff 2.x --- docs/navigation.php | 1 + docs/source/v2/global-stuff.blade.md | 29 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 docs/source/v2/global-stuff.blade.md diff --git a/docs/navigation.php b/docs/navigation.php index 5979584..f322cc9 100644 --- a/docs/navigation.php +++ b/docs/navigation.php @@ -97,6 +97,7 @@ return [ 'children' => [ 'HTTPS Certificates' => 'https-certificates', 'Misc' => 'misc-tips', + 'Global Cache/Storage/...' => 'global-stuff', ], ], 'Stay Updated' => 'stay-updated', diff --git a/docs/source/v2/global-stuff.blade.md b/docs/source/v2/global-stuff.blade.md new file mode 100644 index 0000000..f9651f5 --- /dev/null +++ b/docs/source/v2/global-stuff.blade.md @@ -0,0 +1,29 @@ +--- +title: Global Cache/Storage/Assets/... +description: Global Cache/Storage/Assets/... +extends: _layouts.documentation_v2 +section: content +--- + +# Global Cache/Storage/Assets/... + +## Global Cache {#global-cache} + +Use the `GlobalCache` facade, or the `global_cache()` helper. + +## Global Storage {#global-storage} + +Create a disk and *don't* add it to `tenancy.filesystem.disks`. + +## Global Assets {#global-assets} + +Use the `global_asset()` helper. + +## Global Database {#global-database} + +Create a new connection and use it like `DB::connection($connectionName)->table('foo')->where(...)` + +## Global Queues/Jobs {#global-queues-jobs} + +Coming soon. +