mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Add note about Horizon being used in the central app (#192)
* Add note about Horizon being used in the central app * Update note
This commit is contained in:
parent
c6d5a420ee
commit
5517531c73
1 changed files with 3 additions and 2 deletions
|
|
@ -5,12 +5,13 @@ section: content
|
|||
---
|
||||
|
||||
# Laravel Horizon {#laravel-horizon}
|
||||
> Note: **Horizon is only accessible on the central domain**. You can separate the jobs by [tagging them with tenant IDs](#tags).
|
||||
|
||||
Make sure your [queues]({{ $page->link('queues') }}) are configured correctly before using this.
|
||||
|
||||
## Tags {#tags}
|
||||
|
||||
You may add the current tenant's id to your job tags by defining a `tags` method on the class:
|
||||
You may add the current tenant's ID to your job tags by defining a `tags` method on the class:
|
||||
|
||||
```php
|
||||
/**
|
||||
|
|
@ -24,4 +25,4 @@ public function tags()
|
|||
'tenant:' . tenant('id'),
|
||||
];
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue