From ddff134223b457010dfa144184443ad694827540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Wed, 28 Sep 2022 14:34:06 +0200 Subject: [PATCH] Update tenants.blade.md --- source/docs/v3/tenants.blade.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/docs/v3/tenants.blade.md b/source/docs/v3/tenants.blade.md index 7dce6d6..0e25e38 100644 --- a/source/docs/v3/tenants.blade.md +++ b/source/docs/v3/tenants.blade.md @@ -137,10 +137,10 @@ When your code executes in the context of a tenant, you may access the central a For instance, if you want to retrieve the list of users of the central application when the code executes in a tenant's context, you may write: ```php -// here we are in the tenant's context. \App\Models\User::all() would return the current tenant's users. +// Here we are in the tenant's context. User::all() would return the current tenant's users $centralUsers = tenancy()->central(function () { - // here we are in the central app context - return \App\Models\User::all(); + // Here we are in the central context + return User::all(); }); ```