Skip to content

Commit 50c542d

Browse files
- update README.md
2 parents 9f98741 + ab87f49 commit 50c542d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ Not only that, but it probably isn't a good idea to cache the user model anyway,
7676
since you always want to pull the most up-to-date info on it.
7777

7878
### Multitenant support for cached models
79-
If you need multitenancy support the same model context (key and tags) needs to be cached for each denant with it's specific values. This requires a separations of cache that is supported by implementing the getCachePrefix method in the model class.
79+
If you need multitenant support the same model context (key and tags) needs to be cached for each tenant with it's specific values. This requires a separations of cache that is supported by implementing the getCachePrefix method in the model class.
8080

81-
I would recommend to implement in your application a TenantCachable trait containing the getCachePrefix method that for example returns a unique value corresponding to each tenant.
81+
I would recommend to implement in your application a TenantCachable trait for your models containing the getCachePrefix method that for example returns a unique value corresponding to each tenant.
8282
An example in the context of using the hyn/multi-tenant package can be:
8383
```php
8484
public function getCachePrefix()

0 commit comments

Comments
 (0)