From 28e5ad9062aa5d07510e6bfa9acbfd24a8a2de43 Mon Sep 17 00:00:00 2001 From: Tom Croft <28220951+tomcrofty@users.noreply.github.com> Date: Tue, 11 Oct 2022 15:20:10 +0100 Subject: [PATCH] Use of artisan tinker for manual initialization Small change but it took a bit for me to figure this one out so I wanted to mention it --- source/docs/v3/manual-initialization.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/docs/v3/manual-initialization.md b/source/docs/v3/manual-initialization.md index fea3ac0..c1860d8 100644 --- a/source/docs/v3/manual-initialization.md +++ b/source/docs/v3/manual-initialization.md @@ -6,7 +6,7 @@ section: content # Manual initialization {#manual-initialization} -Sometimes you may want to initialize tenancy manually — that is, not using web middleware, command traits, queue tenancy etc. +Sometimes you may want to initialize tenancy manually — that is, not using web middleware, command traits, queue tenancy etc. A common use case for this is if you need to use `artisan tinker` for a specific tenant. For that, use the `initialize()` method on `Stancl\Tenancy\Tenancy`. You can resolve the `Tenancy` instance out of the container using the `tenancy()` helper. @@ -14,4 +14,4 @@ For that, use the `initialize()` method on `Stancl\Tenancy\Tenancy`. You can res $tenant = Tenant::find('some-id'); tenancy()->initialize($tenant); -``` \ No newline at end of file +```