1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 13:54:04 +00:00

Fix links

This commit is contained in:
Samuel Štancl 2019-08-17 12:22:33 +02:00
parent 14e9de4d11
commit 15ac61920d
7 changed files with 9 additions and 9 deletions

View file

@ -13,7 +13,7 @@ The `config/tenancy.php` file lets you configure how the package behaves.
### `storage_driver, storage` ### `storage_driver, storage`
This lets you configure the driver for tenant storage, i.e. what will be used to store information about your tenants. You can read more about this on the [Storage Drivers](storage-drivers) page. This lets you configure the driver for tenant storage, i.e. what will be used to store information about your tenants. You can read more about this on the [Storage Drivers](/docs/storage-drivers) page.
Available storage drivers: Available storage drivers:
- `Stancl\Tenancy\StorageDrivers\RedisStorageDriver` - `Stancl\Tenancy\StorageDrivers\RedisStorageDriver`
@ -53,4 +53,4 @@ The root of each disk listed in `tenancy.filesystem.disks` will be suffixed with
For disks listed in `root_override`, the root will be that string with `%storage_path%` replaced by `storage_path()` *after* tenancy has been initialized. All other disks will be simply suffixed with `tenancy.filesystem.suffix_base` + the tenant UUID. For disks listed in `root_override`, the root will be that string with `%storage_path%` replaced by `storage_path()` *after* tenancy has been initialized. All other disks will be simply suffixed with `tenancy.filesystem.suffix_base` + the tenant UUID.
Read more about this on the [Filesystem Tenancy](filesystem-tenancy) page. Read more about this on the [Filesystem Tenancy](/docs/filesystem-tenancy) page.

View file

@ -9,7 +9,7 @@ section: content
[**stancl/tenancy**](https://github.com/stancl/tenancy) is a Laravel multi-database tenancy package. It is designed in a way that requires you to make no changes to your codebase. Instead of applying traits on models and replacing every single reference to cache by a reference to a tenant-aware cache, the package lets you write your app without thinking about tenancy. It handles tenancy automatically. [**stancl/tenancy**](https://github.com/stancl/tenancy) is a Laravel multi-database tenancy package. It is designed in a way that requires you to make no changes to your codebase. Instead of applying traits on models and replacing every single reference to cache by a reference to a tenant-aware cache, the package lets you write your app without thinking about tenancy. It handles tenancy automatically.
> Note: Filesystem is the only thing that can be a little problematic. Be sure to read [that page](filesystem-tenancy). > Note: Filesystem is the only thing that can be a little problematic. Be sure to read [that page](/docs/filesystem-tenancy).
## How does it work? {#how-does-it-work} ## How does it work? {#how-does-it-work}

View file

@ -25,7 +25,7 @@ To install the package, simply run
php artisan tenancy:install php artisan tenancy:install
``` ```
You will be asked if you want to store your data in Redis or a relational database. You can read more about this on the [Storage Drivers](storage-drivers) page. You will be asked if you want to store your data in Redis or a relational database. You can read more about this on the [Storage Drivers](/docs/storage-drivers) page.
This will do all the steps listed in the [Manual installation](#manual-installation) section for you. This will do all the steps listed in the [Manual installation](#manual-installation) section for you.
@ -62,4 +62,4 @@ php artisan vendor:publish --provider='Stancl\Tenancy\TenancyServiceProvider' --
This creates a `config/tenancy.php`. You can use it to configure how the package works. This creates a `config/tenancy.php`. You can use it to configure how the package works.
Configuration is explained in detail on the [configuration](configuration) page. Configuration is explained in detail on the [Configuration](/docs/configuration) page.

View file

@ -9,7 +9,7 @@ section: content
Storage drivers are used to store a list of all tenants, their domains and any extra information you store about your tenants (e.g. their plan). Storage drivers are used to store a list of all tenants, their domains and any extra information you store about your tenants (e.g. their plan).
Currently, database and Redis storage drivers are available as part of the package. However, you can [write your own](writing-storage-drivers) (and contribute ❤️) storage drivers. Currently, database and Redis storage drivers are available as part of the package. However, you can [write your own](/docs/writing-storage-drivers) (and contribute ❤️) storage drivers.
## Database {#database} ## Database {#database}

View file

@ -128,7 +128,7 @@ class CacheManager extends BaseCacheManager
## Filesystem tenancy {#filesystem-tenancy} ## Filesystem tenancy {#filesystem-tenancy}
`bootstrap()` calls `suffiexFilesystemRootPaths()`. This method changes `storage_path()` and the roots of disks listed in `config('tenancy.filesystem.disks)`. You can read more about this on the [Filesystem Tenancy](filesystem-tenancy) page. `bootstrap()` calls `suffiexFilesystemRootPaths()`. This method changes `storage_path()` and the roots of disks listed in `config('tenancy.filesystem.disks)`. You can read more about this on the [Filesystem Tenancy](/docs/filesystem-tenancy) page.
```php ```php
public function suffixFilesystemRootPaths() public function suffixFilesystemRootPaths()

View file

@ -11,7 +11,7 @@ Routes within `routes/tenant.php` will have the `web` middleware group and the `
Just like `routes/web.php`, these routes use the `App\Http\Controllers` namespace. Just like `routes/web.php`, these routes use the `App\Http\Controllers` namespace.
> If a tenant cannot be identified, anexception will be thrown. If you want to change this behavior (to a redirect, for example) read the [Middleware Configuration](middleware-configuration) page. > If a tenant cannot be identified, anexception will be thrown. If you want to change this behavior (to a redirect, for example) read the [Middleware Configuration](/docs/middleware-configuration) page.
## Exempt routes {#exempt-routes} ## Exempt routes {#exempt-routes}

View file

@ -13,7 +13,7 @@ Most pages will use the `tenancy()` helper function. This package comes with two
`tenant()->create()` reads better than `tenancy()->create()`, but `tenancy()->init()` reads better than `tenant()->init()`. `tenant()->create()` reads better than `tenancy()->create()`, but `tenancy()->init()` reads better than `tenant()->init()`.
You can pass an argument to the helper function to get a value out of the tenant storage. `tenant('plan')` is identical to [`tenant()->get('plan')`](tenant-storage). You can pass an argument to the helper function to get a value out of the tenant storage. `tenant('plan')` is identical to [`tenant()->get('plan')`](/docs/tenant-storage).
The package also comes with two facades. `Tenancy` and `Tenant`. Use what feels the best. The package also comes with two facades. `Tenancy` and `Tenant`. Use what feels the best.