From e130cd9596176730d21ddcc9a27569c2cf0ab358 Mon Sep 17 00:00:00 2001 From: Samuel Stancl Date: Sun, 26 Jul 2020 21:46:10 +0200 Subject: [PATCH] Old todo --- source/docs/v3/single-database-tenancy.blade.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/docs/v3/single-database-tenancy.blade.md b/source/docs/v3/single-database-tenancy.blade.md index 8b14f9b..8e954fd 100644 --- a/source/docs/v3/single-database-tenancy.blade.md +++ b/source/docs/v3/single-database-tenancy.blade.md @@ -110,8 +110,6 @@ and this on **secondary models:** $table->unique(['post_id', 'user_id']); ``` -TODO: Unique constraints, validation, mention that eloquent models will be scoped, but DB calls won't - ### Validation {#validations} The `unique` and `exists` validation rules of course aren't scoped to the current tenant, so you need to scope them manually like this: @@ -158,4 +156,4 @@ use Stancl\Tenancy\Database\Concerns\BelongsToTenant; BelongsToTenant::$tenantIdColumn = 'team_id'; ``` -Note that this is universal to all your primary models, so if you use `team_id` somewhere, you use it everywhere — you can't use both `team_id` and `tenant_id`. \ No newline at end of file +Note that this is universal to all your primary models, so if you use `team_id` somewhere, you use it everywhere — you can't use both `team_id` and `tenant_id`.