1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 08:44:04 +00:00
This commit is contained in:
Samuel Štancl 2019-08-17 14:39:46 +02:00
parent 8da31fa7b6
commit 50bb0e07fa

View file

@ -26,6 +26,13 @@ php artisan vendor:publish --provider='Stancl\Tenancy\TenancyServiceProvider' --
By default, all of your data will be stored in the JSON column `data`. If you want to store some data in a dedicated column (to leverage indexing, for example), add the column to the migration and to `tenancy.custom_columns` config. By default, all of your data will be stored in the JSON column `data`. If you want to store some data in a dedicated column (to leverage indexing, for example), add the column to the migration and to `tenancy.custom_columns` config.
Finally, run the migration:
```
php artisan migrate
```
> Note: If you have existing migrations related to your app in `database/migrations`, move them to `database/migrations/tenant`. You can read more about tenant migrations [here](/docs/console-commands/#migrate).
## Redis {#redis} ## Redis {#redis}
The Redis storage driver lets you store tenant information in Redis, a high-performance key-value store. The Redis storage driver lets you store tenant information in Redis, a high-performance key-value store.