diff --git a/source/docs/configuration.md b/source/docs/configuration.md index 63332db1..793c7633 100644 --- a/source/docs/configuration.md +++ b/source/docs/configuration.md @@ -13,7 +13,7 @@ The `config/tenancy.php` file lets you configure how the package behaves. ### `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: - `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. -Read more about this on the [Filesystem Tenancy](filesystem-tenancy) page. \ No newline at end of file +Read more about this on the [Filesystem Tenancy](/docs/filesystem-tenancy) page. \ No newline at end of file diff --git a/source/docs/getting-started.md b/source/docs/getting-started.md index 4a5cdcd1..4c13c850 100644 --- a/source/docs/getting-started.md +++ b/source/docs/getting-started.md @@ -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. -> 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} diff --git a/source/docs/installation.md b/source/docs/installation.md index 1a5fa4c7..2414b1d5 100644 --- a/source/docs/installation.md +++ b/source/docs/installation.md @@ -25,7 +25,7 @@ To install the package, simply run 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. @@ -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. -Configuration is explained in detail on the [configuration](configuration) page. \ No newline at end of file +Configuration is explained in detail on the [Configuration](/docs/configuration) page. \ No newline at end of file diff --git a/source/docs/storage-drivers.md b/source/docs/storage-drivers.md index 54c0470d..4a2f8b86 100644 --- a/source/docs/storage-drivers.md +++ b/source/docs/storage-drivers.md @@ -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). -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} diff --git a/source/docs/tenancy-initialization.md b/source/docs/tenancy-initialization.md index d9f2900f..b34c08d9 100644 --- a/source/docs/tenancy-initialization.md +++ b/source/docs/tenancy-initialization.md @@ -128,7 +128,7 @@ class CacheManager extends BaseCacheManager ## 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 public function suffixFilesystemRootPaths() diff --git a/source/docs/tenant-routes.md b/source/docs/tenant-routes.md index 47e12a7b..11a46f28 100644 --- a/source/docs/tenant-routes.md +++ b/source/docs/tenant-routes.md @@ -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. -> 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} diff --git a/source/docs/usage.md b/source/docs/usage.md index 59d54ae3..cdb304ae 100644 --- a/source/docs/usage.md +++ b/source/docs/usage.md @@ -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()`. -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.