From e367dc3156b4ae05cf1510aca2361544476e8563 Mon Sep 17 00:00:00 2001 From: huzzi Date: Fri, 3 Mar 2023 20:54:48 +0000 Subject: [PATCH] Update quickstart.blade.md --- source/docs/v3/quickstart.blade.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/docs/v3/quickstart.blade.md b/source/docs/v3/quickstart.blade.md index 4ce61df..2620710 100644 --- a/source/docs/v3/quickstart.blade.md +++ b/source/docs/v3/quickstart.blade.md @@ -164,6 +164,7 @@ These routes will only be accessible on tenant (non-central) domains — the `Pr Let's make a small change to dump all the users in the database, so that we can actually see multi-tenancy working. Open the file `routes/tenant.php` and apply the modification below: + ```php Route::get('/', function () { dd(\App\Models\User::all()); @@ -192,6 +193,8 @@ $ php artisan tinker Now we'll create a user inside each tenant's database: +Please run **php artisan tenants:migrate** before you create the users otherwise you will get an error. + ```php App\Models\Tenant::all()->runForEach(function () { App\Models\User::factory()->create();