mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Fix spelling errors and broken links
This commit is contained in:
parent
de0a9c40f6
commit
ed8aa7647b
11 changed files with 11 additions and 11 deletions
|
|
@ -104,7 +104,7 @@ return [
|
|||
],
|
||||
],
|
||||
'Integrations' => [
|
||||
'url' => 'docs/integrations',
|
||||
'url' => 'integrations',
|
||||
'children' => [
|
||||
'Spatie Packages' => 'spatie',
|
||||
'Horizon' => 'horizon',
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ This package uses routes to separate the tenant part of the application from the
|
|||
|
||||
## Central routes {#central-routes}
|
||||
|
||||
Routes in the `routes/web.php` file are the central routes. When they are visited, tenancy is *not* intialized and any model, cache call, controller, job dispatch, Redis call and anything else that is called in during this request will be central.
|
||||
Routes in the `routes/web.php` file are the central routes. When they are visited, tenancy is *not* initialized and any model, cache call, controller, job dispatch, Redis call and anything else that is called in during this request will be central.
|
||||
|
||||
## Central domains {#central-domains}
|
||||
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ The aliases are used by the [event system]({{ $page->link('hooks') }})
|
|||
|
||||
### `features` {#bootstrappers}
|
||||
|
||||
[Features]({{ $page->link('optional-features') }}) are similar to bootstrappers, but they are executed regardless of whether tenancy has been initialized or not. Their purpose is to provide additional functionality beyond what is necessary for the package to work. Things like easy redirects to tenant domains, tags in Telescope, etc.
|
||||
[Features]({{ $page->link('features') }}) are similar to bootstrappers, but they are executed regardless of whether tenancy has been initialized or not. Their purpose is to provide additional functionality beyond what is necessary for the package to work. Things like easy redirects to tenant domains, tags in Telescope, etc.
|
||||
|
||||
### `home_url` {#home-url}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ This package takes a completely new approach to multi-tenancy.
|
|||
|
||||
It makes your application multi-tenant automatically and attempts to make you not have to change anything in your code. The philosophy behind this approach is that you should write your app, not tenancy boilerplate.
|
||||
|
||||
We belive that your code will be a lot cleaner if tenancy and the actual app don't mix. Why pollute your code with tons of tenancy implementations, when you can push all of tenancy one layer below your actual application?
|
||||
We believe that your code will be a lot cleaner if tenancy and the actual app don't mix. Why pollute your code with tons of tenancy implementations, when you can push all of tenancy one layer below your actual application?
|
||||
|
||||
Apart from saving you a ton of time, the benefit of going with the automatic approach is that you can adapt easily, since you're not bound to a specific implementation of multi-tenancy. [You can always change how tenancy is bootstrapped.]({{ $page->link('tenancy-bootstrappers') }})
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ section: content
|
|||
|
||||
# Upgrading from 1.x {#upgrading}
|
||||
|
||||
The 2.0.0 release is essentialy a ~60% rewrite, with 3,187 additions and 1,896 deletions (lines of code). Version 2 introduces Laravel 6 support and drops Laravel 5.8 support.
|
||||
The 2.0.0 release is essentially a ~60% rewrite, with 3,187 additions and 1,896 deletions (lines of code). Version 2 introduces Laravel 6 support and drops Laravel 5.8 support.
|
||||
|
||||
This guide attempts to cover the main changes that were made to the package. The rewrite was mainly:
|
||||
- an internal thing: much better code quality means much better maintainability and much more features in the future :)
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class PostController
|
|||
}
|
||||
```
|
||||
|
||||
If you don't like that because you access some dependency from many actions, consider creating a memoized method:
|
||||
If you don't like that because you access some dependency from many actions, consider creating a memorized method:
|
||||
|
||||
```php
|
||||
class PostController
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ Note: All events are located in the `Stancl\Tenancy\Events` namespace.
|
|||
- `RevertingToCentralContext`
|
||||
- `RevertedToCentralContext`
|
||||
|
||||
Note the difference between *initializing tenancy and bootstrapping* tenancy. Tenancy is initialized when a tenant is loaded into the `Tenancy` object. Whereas boostrapping happens **as a result of initialization** — if you're using automatic tenancy, the `BootstrapTenancy` class is listening to the `TenancyInitialized` event and after it's done executing bootstrappers, it fires an event saying that tenancy was bootstrapped. You want to use the bootstrapped event if you want to execute something **after the app has been transitioned to the tenant context.**
|
||||
Note the difference between *initializing tenancy and bootstrapping* tenancy. Tenancy is initialized when a tenant is loaded into the `Tenancy` object. Whereas bootstrapping happens **as a result of initialization** — if you're using automatic tenancy, the `BootstrapTenancy` class is listening to the `TenancyInitialized` event and after it's done executing bootstrappers, it fires an event saying that tenancy was bootstrapped. You want to use the bootstrapped event if you want to execute something **after the app has been transitioned to the tenant context.**
|
||||
|
||||
### Tenant {#tenant}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ section: content
|
|||
|
||||
# Integrating with other packages {#integrating-with-other-packages}
|
||||
|
||||
If you're using the [automatic mode]({{ $page->link('features/automatic-mode') }}) & [multi-database tenancy]({{ $page->link('multi-database-tenancy') }}), you'll be able to integrate with other packages easily.
|
||||
If you're using the [automatic mode]({{ $page->link('automatic-mode') }}) & [multi-database tenancy]({{ $page->link('multi-database-tenancy') }}), you'll be able to integrate with other packages easily.
|
||||
|
||||
- [Integration with Spatie packages]({{ $page->link('integrations/spatie') }})
|
||||
- [Laravel Horizon]({{ $page->link('integrations/horizon') }})
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ section: content
|
|||
|
||||
# Laravel Telescope {#laravel-telescope}
|
||||
|
||||
Enable the the *Telescope tags* feature to have all Telescope requests tagged with the current tenant's id.
|
||||
Enable the *Telescope tags* feature to have all Telescope requests tagged with the current tenant's id.
|
||||
|
||||
Note that Telescope (& its migrations) will be part of the central app.
|
||||
|
|
|
|||
|
|
@ -33,4 +33,4 @@ In the current version, we're also making [manual tenancy]({{ $page->link('manua
|
|||
|
||||
## Tenant identification {#tenant-identification}
|
||||
|
||||
For your application to be tenant-aware, a [tenant has to be identified]({{ $page->link('tenant-identification') }}). This package ships with a large number of identification middlewares. You may identify tenants by domain, subdomain, domain OR subdomain at the same time, path or request data.
|
||||
For your application to be tenant-aware, a [tenant has to be identified]({{ $page->link('tenant-identification') }}). This package ships with a large number of identification middleware. You may identify tenants by domain, subdomain, domain OR subdomain at the same time, path or request data.
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ If you would like to support me on a monthly basis in USD, you can use GitHub Sp
|
|||
|
||||
If you'd like to donate using credit/debit card, select the amount below and click *Donate*. You will be redirected to Stripe.
|
||||
|
||||
This is the prefered method for one-time donations because it comes with **no fees at all** for either party.
|
||||
This is the preferred method for one-time donations because it comes with **no fees at all** for either party.
|
||||
|
||||
<select id="stripe-onetime-price" class="block form-select w-full transition duration-150 ease-in-out sm:text-sm sm:leading-5">
|
||||
<option value="price_1GrLEBGlrejN28Vyt5SvEaaF">$5</option>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue