From 0d8eec8b6502d2d0ceeaa071dcea2a945bcc84d2 Mon Sep 17 00:00:00 2001 From: Ped Date: Thu, 14 Oct 2021 08:22:40 +0200 Subject: [PATCH] Using App\Models\Tenant instead of App\Tenant In the latest Laravel, models are put in an `app/models/` directory on default, rather than `app/`. --- source/docs/v3/tenants.blade.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/docs/v3/tenants.blade.md b/source/docs/v3/tenants.blade.md index 899d60c..7cd7bcd 100644 --- a/source/docs/v3/tenants.blade.md +++ b/source/docs/v3/tenants.blade.md @@ -18,12 +18,12 @@ The base model has the following features on top of the ones that are necessary **Most** applications using this package will want domain/subdomain identification and tenant databases. -To do this, create a new model, e.g. `App\Tenant`, that looks like this: +To do this, create a new model, e.g. `App\Models\Tenant`, that looks like this: ```php \App\Tenant::class, +'tenant_model' => \App\Models\Tenant::class, ``` If you want to customize the `Domain` model, you can do that too. @@ -51,6 +51,8 @@ If you want to customize the `Domain` model, you can do that too. You can create tenants like any other models: ```php +use App\Models\Tenant; + $tenant = Tenant::create([ 'plan' => 'free', ]);