mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
fix link
This commit is contained in:
parent
e130cd9596
commit
760a6fd95d
1 changed files with 1 additions and 3 deletions
|
|
@ -118,9 +118,7 @@ The `unique` and `exists` validation rules of course aren't scoped to the curren
|
||||||
Rule::unique('posts', 'slug')->where('tenant_id', tenant('id'));
|
Rule::unique('posts', 'slug')->where('tenant_id', tenant('id'));
|
||||||
```
|
```
|
||||||
|
|
||||||
If that feels like a chore, you may use the `Stancl\Tenancy\Database\Concerns\HasScopedValidationRules` trait on your custom *Tenant* model to add methods for these two rules.
|
If that feels like a chore, you may use the `Stancl\Tenancy\Database\Concerns\HasScopedValidationRules` trait on your custom [Tenant]({{ $page->link('tenants') }}) model to add methods for these two rules.
|
||||||
|
|
||||||
[Tenants](Tenants%20e929a50afae2436c936b323fab4a0f60.md)
|
|
||||||
|
|
||||||
You'll be able to use these two methods:
|
You'll be able to use these two methods:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue