mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
parent
3915af0d8d
commit
1f3a1d56bb
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ section: content
|
|||
|
||||
It's likely you will need to use tenant-specific config in your application. That config could be API keys, things like "products per page" and many other things.
|
||||
|
||||
You could just use the the tenant model to get these values, but you may still want to use Laravel's `config()` because of:
|
||||
You could just use the tenant model to get these values, but you may still want to use Laravel's `config()` because of:
|
||||
|
||||
- separation of concerns — if you just write tenancy implementation-agnostic `config('shop.products_per_page')`, you will have a much better time changing tenancy implementations
|
||||
- default values — you may want to use the tenant storage only to override values in your config file
|
||||
|
|
@ -46,4 +46,4 @@ Sometimes you may want to copy the value to multiple config keys. To do that, sp
|
|||
'locales.default',
|
||||
],
|
||||
],
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue