mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
fixes confusing typo on Tenants page (#236)
* fixed typo Don't know what exactly this line is referring to (eg, `CentralConnection` concern, the `$tenant->run...` function, or something else)...but I'm 95% sure this was a typo in one direction or the other. Hope that helps! * Update tenants.blade.md Co-authored-by: Samuel Štancl <samuel@archte.ch>
This commit is contained in:
parent
90f08efaa7
commit
c819780a68
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ The package comes with a base `Tenant` model that's ready for common things, tho
|
||||||
|
|
||||||
The base model has the following features on top of the ones that are necessary by the interface:
|
The base model has the following features on top of the ones that are necessary by the interface:
|
||||||
|
|
||||||
- Forced central connection (lets you interact with Tenant models even in tenant contexts)
|
- Forced central connection (lets you interact with `Tenant` models even in the tenant context)
|
||||||
- Data column trait — lets you store arbitrary keys. Attributes that don't exist as columns on your `tenants` table go to the `data` column as serialized JSON.
|
- Data column trait — lets you store arbitrary keys. Attributes that don't exist as columns on your `tenants` table go to the `data` column as serialized JSON.
|
||||||
- Id generation trait — when you don't supply an ID, a random uuid will be generated. An alternative to this would be using AUTOINCREMENT columns. If you wish to use numerical ids, change the `create_tenants_table` migration to use `bigIncrements()` or some such column type, and set `tenancy.id_generator` config to null. That will disable the ID generation altogether, falling back to the database's autoincrement mechanism.
|
- Id generation trait — when you don't supply an ID, a random uuid will be generated. An alternative to this would be using AUTOINCREMENT columns. If you wish to use numerical ids, change the `create_tenants_table` migration to use `bigIncrements()` or some such column type, and set `tenancy.id_generator` config to null. That will disable the ID generation altogether, falling back to the database's autoincrement mechanism.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue