mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Update getting-started.blade.md
This commit is contained in:
parent
21297e6ce3
commit
0520e08950
1 changed files with 2 additions and 1 deletions
|
|
@ -29,5 +29,6 @@ Multi-tenancy is the ability to provide your application to multiple customers (
|
|||
Multi-tenancy can be single-database and multi-database.
|
||||
|
||||
**Single-database tenancy** means that your application uses only a single database. The way this is usually implemented is that instead of having the `id`, `title`, `user_id` and `body` columns in your `posts` table, you will also have a `tenant_id` column. This approach works until you need custom databases for your clients. It's also easy to implement, it basically boils down to having your models use a trait which adds a [global scope](https://laravel.com/docs/master/eloquent#global-scopes).
|
||||
Again, to be clear: This package does not provide single-database tenancy features.
|
||||
|
||||
**Multi-database tenancy**, the type that this package provides, lets you use a separate database for each tenant. The benefits of this approach are scalability, compliance (some clients need to have the database on their server) and mitigation of risks such as showing the wrong tenant's data to a user. The downside is that this model is harder to implement, which is why this package exists.
|
||||
Loading…
Add table
Add a link
Reference in a new issue