This commit is contained in:
Samuel Stancl 2020-07-26 21:46:10 +02:00 committed by GitHub
parent 141b9fdbc2
commit e130cd9596
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: