1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 08:44:02 +00:00

Add installation requirements

This commit is contained in:
Samuel Štancl 2019-06-04 22:28:33 +02:00 committed by GitHub
parent 726d037ffd
commit 3abde1a791
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,6 +17,11 @@ You won't have to change a thing in your application's code.\*
## Installation
### Requirements
- Laravel 5.7 or 5.8
- phpredis (predis is not supported)
### Installing the package
```
@ -25,8 +30,6 @@ composer require stancl/tenancy
This package follows [semantic versioning 2.0.0](https://semver.org). Each major release will have its own branch, so that bug fixes can be provided for older versions as well.
Both Laravel 5.7 and 5.8 are supported.
### Configuring the `InitializeTenancy` middleware
The `TenancyServiceProvider` automatically adds the `tenancy` middleware group which can be assigned to routes. You only need to make sure the middleware is top priority.
@ -323,7 +326,7 @@ The entire application will use a new database connection. The connection will b
Connections listed in the `tenancy.redis.prefixed_connections` config array use a prefix based on the `tenancy.redis.prefix_base` and the tenant UUID.
**Note: You *must* use phpredis for prefixes to work. Predis doesn't support prefixes.**
**Note: You *must* use phpredis. Predis doesn't support prefixes.**
## Cache