From 773d66956f36e4e96f1084f784cac390da817770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Wed, 18 Sep 2019 08:34:34 +0200 Subject: [PATCH] .blade.md --- ...{application-testing.md => application-testing.blade.md} | 0 source/1.x/{configuration.md => configuration.blade.md} | 4 ++-- .../1.x/{console-commands.md => console-commands.blade.md} | 0 .../1.x/{creating-tenants.md => creating-tenants.blade.md} | 2 +- ...tom-database-names.md => custom-database-names.blade.md} | 0 source/1.x/{development.md => development.blade.md} | 0 ... => difference-between-this-package-and-others.blade.md} | 0 source/1.x/{digging-deeper.md => digging-deeper.blade.md} | 0 source/1.x/{event-system.md => event-system.blade.md} | 0 .../{filesystem-tenancy.md => filesystem-tenancy.blade.md} | 0 .../getting-started.md => 1.x/getting-started.blade.md} | 2 +- source/{2.x/horizon.md => 1.x/horizon.blade.md} | 2 +- .../{https-certificates.md => https-certificates.blade.md} | 0 source/{2.x/installation.md => 1.x/installation.blade.md} | 6 +++--- source/1.x/{integrations.md => integrations.blade.md} | 2 +- source/1.x/{jobs-queues.md => jobs-queues.blade.md} | 0 ...e-configuration.md => middleware-configuration.blade.md} | 0 source/1.x/{misc-tips.md => misc-tips.blade.md} | 0 source/1.x/{stay-updated.md => stay-updated.blade.md} | 0 .../storage-drivers.md => 1.x/storage-drivers.blade.md} | 4 ++-- source/1.x/{telescope.md => telescope.blade.md} | 0 ...cy-initialization.md => tenancy-initialization.blade.md} | 2 +- source/1.x/{tenant-manager.md => tenant-manager.blade.md} | 0 source/{2.x/tenant-routes.md => 1.x/tenant-routes.blade.md} | 2 +- source/1.x/{tenant-storage.md => tenant-storage.blade.md} | 0 source/{2.x/usage.md => 1.x/usage.blade.md} | 2 +- ...-storage-drivers.md => writing-storage-drivers.blade.md} | 0 ...{application-testing.md => application-testing.blade.md} | 0 source/2.x/{configuration.md => configuration.blade.md} | 4 ++-- .../2.x/{console-commands.md => console-commands.blade.md} | 0 ...tom-database-names.md => custom-database-names.blade.md} | 0 source/2.x/{development.md => development.blade.md} | 0 ... => difference-between-this-package-and-others.blade.md} | 0 source/2.x/{digging-deeper.md => digging-deeper.blade.md} | 0 source/2.x/{event-system.md => event-system.blade.md} | 0 .../{filesystem-tenancy.md => filesystem-tenancy.blade.md} | 0 .../getting-started.md => 2.x/getting-started.blade.md} | 2 +- source/{1.x/horizon.md => 2.x/horizon.blade.md} | 2 +- .../{https-certificates.md => https-certificates.blade.md} | 0 source/{1.x/installation.md => 2.x/installation.blade.md} | 6 +++--- source/2.x/{integrations.md => integrations.blade.md} | 2 +- source/2.x/{jobs-queues.md => jobs-queues.blade.md} | 0 ...e-configuration.md => middleware-configuration.blade.md} | 0 source/2.x/{misc-tips.md => misc-tips.blade.md} | 0 source/2.x/{stay-updated.md => stay-updated.blade.md} | 0 .../storage-drivers.md => 2.x/storage-drivers.blade.md} | 4 ++-- source/2.x/{telescope.md => telescope.blade.md} | 0 ...cy-initialization.md => tenancy-initialization.blade.md} | 2 +- source/2.x/{tenant-manager.md => tenant-manager.blade.md} | 0 source/{1.x/tenant-routes.md => 2.x/tenant-routes.blade.md} | 2 +- source/2.x/{tenant-storage.md => tenant-storage.blade.md} | 0 source/{1.x/usage.md => 2.x/usage.blade.md} | 2 +- ...-storage-drivers.md => writing-storage-drivers.blade.md} | 0 53 files changed, 27 insertions(+), 27 deletions(-) rename source/1.x/{application-testing.md => application-testing.blade.md} (100%) rename source/1.x/{configuration.md => configuration.blade.md} (93%) rename source/1.x/{console-commands.md => console-commands.blade.md} (100%) rename source/1.x/{creating-tenants.md => creating-tenants.blade.md} (87%) rename source/1.x/{custom-database-names.md => custom-database-names.blade.md} (100%) rename source/1.x/{development.md => development.blade.md} (100%) rename source/1.x/{difference-between-this-package-and-others.md => difference-between-this-package-and-others.blade.md} (100%) rename source/1.x/{digging-deeper.md => digging-deeper.blade.md} (100%) rename source/1.x/{event-system.md => event-system.blade.md} (100%) rename source/1.x/{filesystem-tenancy.md => filesystem-tenancy.blade.md} (100%) rename source/{2.x/getting-started.md => 1.x/getting-started.blade.md} (97%) rename source/{2.x/horizon.md => 1.x/horizon.blade.md} (81%) rename source/1.x/{https-certificates.md => https-certificates.blade.md} (100%) rename source/{2.x/installation.md => 1.x/installation.blade.md} (88%) rename source/1.x/{integrations.md => integrations.blade.md} (51%) rename source/1.x/{jobs-queues.md => jobs-queues.blade.md} (100%) rename source/1.x/{middleware-configuration.md => middleware-configuration.blade.md} (100%) rename source/1.x/{misc-tips.md => misc-tips.blade.md} (100%) rename source/1.x/{stay-updated.md => stay-updated.blade.md} (100%) rename source/{2.x/storage-drivers.md => 1.x/storage-drivers.blade.md} (93%) rename source/1.x/{telescope.md => telescope.blade.md} (100%) rename source/1.x/{tenancy-initialization.md => tenancy-initialization.blade.md} (98%) rename source/1.x/{tenant-manager.md => tenant-manager.blade.md} (100%) rename source/{2.x/tenant-routes.md => 1.x/tenant-routes.blade.md} (95%) rename source/1.x/{tenant-storage.md => tenant-storage.blade.md} (100%) rename source/{2.x/usage.md => 1.x/usage.blade.md} (94%) rename source/1.x/{writing-storage-drivers.md => writing-storage-drivers.blade.md} (100%) rename source/2.x/{application-testing.md => application-testing.blade.md} (100%) rename source/2.x/{configuration.md => configuration.blade.md} (93%) rename source/2.x/{console-commands.md => console-commands.blade.md} (100%) rename source/2.x/{custom-database-names.md => custom-database-names.blade.md} (100%) rename source/2.x/{development.md => development.blade.md} (100%) rename source/2.x/{difference-between-this-package-and-others.md => difference-between-this-package-and-others.blade.md} (100%) rename source/2.x/{digging-deeper.md => digging-deeper.blade.md} (100%) rename source/2.x/{event-system.md => event-system.blade.md} (100%) rename source/2.x/{filesystem-tenancy.md => filesystem-tenancy.blade.md} (100%) rename source/{1.x/getting-started.md => 2.x/getting-started.blade.md} (97%) rename source/{1.x/horizon.md => 2.x/horizon.blade.md} (81%) rename source/2.x/{https-certificates.md => https-certificates.blade.md} (100%) rename source/{1.x/installation.md => 2.x/installation.blade.md} (88%) rename source/2.x/{integrations.md => integrations.blade.md} (51%) rename source/2.x/{jobs-queues.md => jobs-queues.blade.md} (100%) rename source/2.x/{middleware-configuration.md => middleware-configuration.blade.md} (100%) rename source/2.x/{misc-tips.md => misc-tips.blade.md} (100%) rename source/2.x/{stay-updated.md => stay-updated.blade.md} (100%) rename source/{1.x/storage-drivers.md => 2.x/storage-drivers.blade.md} (93%) rename source/2.x/{telescope.md => telescope.blade.md} (100%) rename source/2.x/{tenancy-initialization.md => tenancy-initialization.blade.md} (98%) rename source/2.x/{tenant-manager.md => tenant-manager.blade.md} (100%) rename source/{1.x/tenant-routes.md => 2.x/tenant-routes.blade.md} (95%) rename source/2.x/{tenant-storage.md => tenant-storage.blade.md} (100%) rename source/{1.x/usage.md => 2.x/usage.blade.md} (94%) rename source/2.x/{writing-storage-drivers.md => writing-storage-drivers.blade.md} (100%) diff --git a/source/1.x/application-testing.md b/source/1.x/application-testing.blade.md similarity index 100% rename from source/1.x/application-testing.md rename to source/1.x/application-testing.blade.md diff --git a/source/1.x/configuration.md b/source/1.x/configuration.blade.md similarity index 93% rename from source/1.x/configuration.md rename to source/1.x/configuration.blade.md index e7e3122..f64e7fd 100644 --- a/source/1.x/configuration.md +++ b/source/1.x/configuration.blade.md @@ -13,7 +13,7 @@ The `config/tenancy.php` file lets you configure how the package behaves. ### `storage_driver, storage` {#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](/docs/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]({{ $page->link('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](/docs/filesystem-tenancy) page. \ No newline at end of file +Read more about this on the [Filesystem Tenancy]({{ $page->link('filesystem-tenancy') }}) page. \ No newline at end of file diff --git a/source/1.x/console-commands.md b/source/1.x/console-commands.blade.md similarity index 100% rename from source/1.x/console-commands.md rename to source/1.x/console-commands.blade.md diff --git a/source/1.x/creating-tenants.md b/source/1.x/creating-tenants.blade.md similarity index 87% rename from source/1.x/creating-tenants.md rename to source/1.x/creating-tenants.blade.md index 03c3d6d..4a5ba38 100644 --- a/source/1.x/creating-tenants.md +++ b/source/1.x/creating-tenants.blade.md @@ -7,7 +7,7 @@ section: content # Creating Tenants {#creating-tenants} -> **Make sure your database is correctly [configured](/docs/configuration/#database) before creating tenants.** +> **Make sure your database is correctly [configured]({{ $page->link('configuration/#database') }}) before creating tenants.** To create a tenant, you can use diff --git a/source/1.x/custom-database-names.md b/source/1.x/custom-database-names.blade.md similarity index 100% rename from source/1.x/custom-database-names.md rename to source/1.x/custom-database-names.blade.md diff --git a/source/1.x/development.md b/source/1.x/development.blade.md similarity index 100% rename from source/1.x/development.md rename to source/1.x/development.blade.md diff --git a/source/1.x/difference-between-this-package-and-others.md b/source/1.x/difference-between-this-package-and-others.blade.md similarity index 100% rename from source/1.x/difference-between-this-package-and-others.md rename to source/1.x/difference-between-this-package-and-others.blade.md diff --git a/source/1.x/digging-deeper.md b/source/1.x/digging-deeper.blade.md similarity index 100% rename from source/1.x/digging-deeper.md rename to source/1.x/digging-deeper.blade.md diff --git a/source/1.x/event-system.md b/source/1.x/event-system.blade.md similarity index 100% rename from source/1.x/event-system.md rename to source/1.x/event-system.blade.md diff --git a/source/1.x/filesystem-tenancy.md b/source/1.x/filesystem-tenancy.blade.md similarity index 100% rename from source/1.x/filesystem-tenancy.md rename to source/1.x/filesystem-tenancy.blade.md diff --git a/source/2.x/getting-started.md b/source/1.x/getting-started.blade.md similarity index 97% rename from source/2.x/getting-started.md rename to source/1.x/getting-started.blade.md index 4c13c85..18cc47c 100644 --- a/source/2.x/getting-started.md +++ b/source/1.x/getting-started.blade.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](/docs/filesystem-tenancy). +> Note: Filesystem is the only thing that can be a little problematic. Be sure to read [that page]({{ $page->link('filesystem-tenancy') }}). ## How does it work? {#how-does-it-work} diff --git a/source/2.x/horizon.md b/source/1.x/horizon.blade.md similarity index 81% rename from source/2.x/horizon.md rename to source/1.x/horizon.blade.md index a95a7b9..141f463 100644 --- a/source/2.x/horizon.md +++ b/source/1.x/horizon.blade.md @@ -7,7 +7,7 @@ section: content # Horizon Integration -> Make sure your queue is [correctly configured](/docs/jobs-queues) before using Horizon. +> Make sure your queue is [correctly configured]({{ $page->link('jobs-queues') }}) before using Horizon. Jobs are automatically tagged with the tenant's uuid and domain: diff --git a/source/1.x/https-certificates.md b/source/1.x/https-certificates.blade.md similarity index 100% rename from source/1.x/https-certificates.md rename to source/1.x/https-certificates.blade.md diff --git a/source/2.x/installation.md b/source/1.x/installation.blade.md similarity index 88% rename from source/2.x/installation.md rename to source/1.x/installation.blade.md index c1bdc36..9607d0a 100644 --- a/source/2.x/installation.md +++ b/source/1.x/installation.blade.md @@ -25,11 +25,11 @@ 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](/docs/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]({{ $page->link('storage-drivers') }}) page. This will do all the steps listed in the [Manual installation](#manual-installation) section for you. -The only thing you have to do now is create a database/Redis connection. Read the [Storage Drivers](/docs/storage-drivers) page for information about that. +The only thing you have to do now is create a database/Redis connection. Read the [Storage Drivers]({{ $page->link('storage-drivers') }}) page for information about that. ### Manual installation {#manual-installation} @@ -64,4 +64,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](/docs/configuration) page. \ No newline at end of file +Configuration is explained in detail on the [Configuration]({{ $page->link('configuration') }}) page. \ No newline at end of file diff --git a/source/1.x/integrations.md b/source/1.x/integrations.blade.md similarity index 51% rename from source/1.x/integrations.md rename to source/1.x/integrations.blade.md index 92033c6..15ae4e9 100644 --- a/source/1.x/integrations.md +++ b/source/1.x/integrations.blade.md @@ -9,4 +9,4 @@ section: content This package naturally integrates well with Laravel packages, since it does not rely on you explicitly specifying database connections. -There are some exceptions, though. [Telescope integration](/docs/telescope), for example, requires you to change the database connection in `config/telescope.php` to a non-default one, because the default connection is switched to the tenant connection. Some packages should use a central connection for data storage. +There are some exceptions, though. [Telescope integration]({{ $page->link('telescope') }}), for example, requires you to change the database connection in `config/telescope.php` to a non-default one, because the default connection is switched to the tenant connection. Some packages should use a central connection for data storage. diff --git a/source/1.x/jobs-queues.md b/source/1.x/jobs-queues.blade.md similarity index 100% rename from source/1.x/jobs-queues.md rename to source/1.x/jobs-queues.blade.md diff --git a/source/1.x/middleware-configuration.md b/source/1.x/middleware-configuration.blade.md similarity index 100% rename from source/1.x/middleware-configuration.md rename to source/1.x/middleware-configuration.blade.md diff --git a/source/1.x/misc-tips.md b/source/1.x/misc-tips.blade.md similarity index 100% rename from source/1.x/misc-tips.md rename to source/1.x/misc-tips.blade.md diff --git a/source/1.x/stay-updated.md b/source/1.x/stay-updated.blade.md similarity index 100% rename from source/1.x/stay-updated.md rename to source/1.x/stay-updated.blade.md diff --git a/source/2.x/storage-drivers.md b/source/1.x/storage-drivers.blade.md similarity index 93% rename from source/2.x/storage-drivers.md rename to source/1.x/storage-drivers.blade.md index 43f7daf..ede9851 100644 --- a/source/2.x/storage-drivers.md +++ b/source/1.x/storage-drivers.blade.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](/docs/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]({{ $page->link('writing-storage-drivers') }}) (and contribute ❤️) storage drivers. ## Database {#database} @@ -35,7 +35,7 @@ php artisan migrate > If you use a non-default connection, such as `central`, you have to specify which DB to migrate using the `--database` option. > -> 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). +> 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]({{ $page->link('console-commands/#migrate') }}). ## Redis {#redis} diff --git a/source/1.x/telescope.md b/source/1.x/telescope.blade.md similarity index 100% rename from source/1.x/telescope.md rename to source/1.x/telescope.blade.md diff --git a/source/1.x/tenancy-initialization.md b/source/1.x/tenancy-initialization.blade.md similarity index 98% rename from source/1.x/tenancy-initialization.md rename to source/1.x/tenancy-initialization.blade.md index b34c08d..7f8c218 100644 --- a/source/1.x/tenancy-initialization.md +++ b/source/1.x/tenancy-initialization.blade.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](/docs/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]({{ $page->link('filesystem-tenancy') }}) page. ```php public function suffixFilesystemRootPaths() diff --git a/source/1.x/tenant-manager.md b/source/1.x/tenant-manager.blade.md similarity index 100% rename from source/1.x/tenant-manager.md rename to source/1.x/tenant-manager.blade.md diff --git a/source/2.x/tenant-routes.md b/source/1.x/tenant-routes.blade.md similarity index 95% rename from source/2.x/tenant-routes.md rename to source/1.x/tenant-routes.blade.md index a9041ec..8b59fdc 100644 --- a/source/2.x/tenant-routes.md +++ b/source/1.x/tenant-routes.blade.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](/docs/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]({{ $page->link('middleware-configuration') }}) page. ## Exempt routes {#exempt-routes} diff --git a/source/1.x/tenant-storage.md b/source/1.x/tenant-storage.blade.md similarity index 100% rename from source/1.x/tenant-storage.md rename to source/1.x/tenant-storage.blade.md diff --git a/source/2.x/usage.md b/source/1.x/usage.blade.md similarity index 94% rename from source/2.x/usage.md rename to source/1.x/usage.blade.md index cdb304a..de1d84f 100644 --- a/source/2.x/usage.md +++ b/source/1.x/usage.blade.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')`](/docs/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')`]({{ $page->link('tenant-storage') }}). The package also comes with two facades. `Tenancy` and `Tenant`. Use what feels the best. diff --git a/source/1.x/writing-storage-drivers.md b/source/1.x/writing-storage-drivers.blade.md similarity index 100% rename from source/1.x/writing-storage-drivers.md rename to source/1.x/writing-storage-drivers.blade.md diff --git a/source/2.x/application-testing.md b/source/2.x/application-testing.blade.md similarity index 100% rename from source/2.x/application-testing.md rename to source/2.x/application-testing.blade.md diff --git a/source/2.x/configuration.md b/source/2.x/configuration.blade.md similarity index 93% rename from source/2.x/configuration.md rename to source/2.x/configuration.blade.md index e7e3122..f64e7fd 100644 --- a/source/2.x/configuration.md +++ b/source/2.x/configuration.blade.md @@ -13,7 +13,7 @@ The `config/tenancy.php` file lets you configure how the package behaves. ### `storage_driver, storage` {#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](/docs/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]({{ $page->link('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](/docs/filesystem-tenancy) page. \ No newline at end of file +Read more about this on the [Filesystem Tenancy]({{ $page->link('filesystem-tenancy') }}) page. \ No newline at end of file diff --git a/source/2.x/console-commands.md b/source/2.x/console-commands.blade.md similarity index 100% rename from source/2.x/console-commands.md rename to source/2.x/console-commands.blade.md diff --git a/source/2.x/custom-database-names.md b/source/2.x/custom-database-names.blade.md similarity index 100% rename from source/2.x/custom-database-names.md rename to source/2.x/custom-database-names.blade.md diff --git a/source/2.x/development.md b/source/2.x/development.blade.md similarity index 100% rename from source/2.x/development.md rename to source/2.x/development.blade.md diff --git a/source/2.x/difference-between-this-package-and-others.md b/source/2.x/difference-between-this-package-and-others.blade.md similarity index 100% rename from source/2.x/difference-between-this-package-and-others.md rename to source/2.x/difference-between-this-package-and-others.blade.md diff --git a/source/2.x/digging-deeper.md b/source/2.x/digging-deeper.blade.md similarity index 100% rename from source/2.x/digging-deeper.md rename to source/2.x/digging-deeper.blade.md diff --git a/source/2.x/event-system.md b/source/2.x/event-system.blade.md similarity index 100% rename from source/2.x/event-system.md rename to source/2.x/event-system.blade.md diff --git a/source/2.x/filesystem-tenancy.md b/source/2.x/filesystem-tenancy.blade.md similarity index 100% rename from source/2.x/filesystem-tenancy.md rename to source/2.x/filesystem-tenancy.blade.md diff --git a/source/1.x/getting-started.md b/source/2.x/getting-started.blade.md similarity index 97% rename from source/1.x/getting-started.md rename to source/2.x/getting-started.blade.md index 4c13c85..18cc47c 100644 --- a/source/1.x/getting-started.md +++ b/source/2.x/getting-started.blade.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](/docs/filesystem-tenancy). +> Note: Filesystem is the only thing that can be a little problematic. Be sure to read [that page]({{ $page->link('filesystem-tenancy') }}). ## How does it work? {#how-does-it-work} diff --git a/source/1.x/horizon.md b/source/2.x/horizon.blade.md similarity index 81% rename from source/1.x/horizon.md rename to source/2.x/horizon.blade.md index a95a7b9..141f463 100644 --- a/source/1.x/horizon.md +++ b/source/2.x/horizon.blade.md @@ -7,7 +7,7 @@ section: content # Horizon Integration -> Make sure your queue is [correctly configured](/docs/jobs-queues) before using Horizon. +> Make sure your queue is [correctly configured]({{ $page->link('jobs-queues') }}) before using Horizon. Jobs are automatically tagged with the tenant's uuid and domain: diff --git a/source/2.x/https-certificates.md b/source/2.x/https-certificates.blade.md similarity index 100% rename from source/2.x/https-certificates.md rename to source/2.x/https-certificates.blade.md diff --git a/source/1.x/installation.md b/source/2.x/installation.blade.md similarity index 88% rename from source/1.x/installation.md rename to source/2.x/installation.blade.md index c1bdc36..9607d0a 100644 --- a/source/1.x/installation.md +++ b/source/2.x/installation.blade.md @@ -25,11 +25,11 @@ 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](/docs/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]({{ $page->link('storage-drivers') }}) page. This will do all the steps listed in the [Manual installation](#manual-installation) section for you. -The only thing you have to do now is create a database/Redis connection. Read the [Storage Drivers](/docs/storage-drivers) page for information about that. +The only thing you have to do now is create a database/Redis connection. Read the [Storage Drivers]({{ $page->link('storage-drivers') }}) page for information about that. ### Manual installation {#manual-installation} @@ -64,4 +64,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](/docs/configuration) page. \ No newline at end of file +Configuration is explained in detail on the [Configuration]({{ $page->link('configuration') }}) page. \ No newline at end of file diff --git a/source/2.x/integrations.md b/source/2.x/integrations.blade.md similarity index 51% rename from source/2.x/integrations.md rename to source/2.x/integrations.blade.md index 92033c6..15ae4e9 100644 --- a/source/2.x/integrations.md +++ b/source/2.x/integrations.blade.md @@ -9,4 +9,4 @@ section: content This package naturally integrates well with Laravel packages, since it does not rely on you explicitly specifying database connections. -There are some exceptions, though. [Telescope integration](/docs/telescope), for example, requires you to change the database connection in `config/telescope.php` to a non-default one, because the default connection is switched to the tenant connection. Some packages should use a central connection for data storage. +There are some exceptions, though. [Telescope integration]({{ $page->link('telescope') }}), for example, requires you to change the database connection in `config/telescope.php` to a non-default one, because the default connection is switched to the tenant connection. Some packages should use a central connection for data storage. diff --git a/source/2.x/jobs-queues.md b/source/2.x/jobs-queues.blade.md similarity index 100% rename from source/2.x/jobs-queues.md rename to source/2.x/jobs-queues.blade.md diff --git a/source/2.x/middleware-configuration.md b/source/2.x/middleware-configuration.blade.md similarity index 100% rename from source/2.x/middleware-configuration.md rename to source/2.x/middleware-configuration.blade.md diff --git a/source/2.x/misc-tips.md b/source/2.x/misc-tips.blade.md similarity index 100% rename from source/2.x/misc-tips.md rename to source/2.x/misc-tips.blade.md diff --git a/source/2.x/stay-updated.md b/source/2.x/stay-updated.blade.md similarity index 100% rename from source/2.x/stay-updated.md rename to source/2.x/stay-updated.blade.md diff --git a/source/1.x/storage-drivers.md b/source/2.x/storage-drivers.blade.md similarity index 93% rename from source/1.x/storage-drivers.md rename to source/2.x/storage-drivers.blade.md index 43f7daf..ede9851 100644 --- a/source/1.x/storage-drivers.md +++ b/source/2.x/storage-drivers.blade.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](/docs/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]({{ $page->link('writing-storage-drivers') }}) (and contribute ❤️) storage drivers. ## Database {#database} @@ -35,7 +35,7 @@ php artisan migrate > If you use a non-default connection, such as `central`, you have to specify which DB to migrate using the `--database` option. > -> 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). +> 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]({{ $page->link('console-commands/#migrate') }}). ## Redis {#redis} diff --git a/source/2.x/telescope.md b/source/2.x/telescope.blade.md similarity index 100% rename from source/2.x/telescope.md rename to source/2.x/telescope.blade.md diff --git a/source/2.x/tenancy-initialization.md b/source/2.x/tenancy-initialization.blade.md similarity index 98% rename from source/2.x/tenancy-initialization.md rename to source/2.x/tenancy-initialization.blade.md index b34c08d..7f8c218 100644 --- a/source/2.x/tenancy-initialization.md +++ b/source/2.x/tenancy-initialization.blade.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](/docs/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]({{ $page->link('filesystem-tenancy') }}) page. ```php public function suffixFilesystemRootPaths() diff --git a/source/2.x/tenant-manager.md b/source/2.x/tenant-manager.blade.md similarity index 100% rename from source/2.x/tenant-manager.md rename to source/2.x/tenant-manager.blade.md diff --git a/source/1.x/tenant-routes.md b/source/2.x/tenant-routes.blade.md similarity index 95% rename from source/1.x/tenant-routes.md rename to source/2.x/tenant-routes.blade.md index a9041ec..8b59fdc 100644 --- a/source/1.x/tenant-routes.md +++ b/source/2.x/tenant-routes.blade.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](/docs/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]({{ $page->link('middleware-configuration') }}) page. ## Exempt routes {#exempt-routes} diff --git a/source/2.x/tenant-storage.md b/source/2.x/tenant-storage.blade.md similarity index 100% rename from source/2.x/tenant-storage.md rename to source/2.x/tenant-storage.blade.md diff --git a/source/1.x/usage.md b/source/2.x/usage.blade.md similarity index 94% rename from source/1.x/usage.md rename to source/2.x/usage.blade.md index cdb304a..de1d84f 100644 --- a/source/1.x/usage.md +++ b/source/2.x/usage.blade.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')`](/docs/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')`]({{ $page->link('tenant-storage') }}). The package also comes with two facades. `Tenancy` and `Tenant`. Use what feels the best. diff --git a/source/2.x/writing-storage-drivers.md b/source/2.x/writing-storage-drivers.blade.md similarity index 100% rename from source/2.x/writing-storage-drivers.md rename to source/2.x/writing-storage-drivers.blade.md