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:
lukinovec 2022-08-26 16:42:27 +02:00 committed by GitHub
parent c6d5a420ee
commit 5517531c73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,12 +5,13 @@ section: content
--- ---
# Laravel Horizon {#laravel-horizon} # 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. Make sure your [queues]({{ $page->link('queues') }}) are configured correctly before using this.
## Tags {#tags} ## 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 ```php
/** /**
@ -24,4 +25,4 @@ public function tags()
'tenant:' . tenant('id'), 'tenant:' . tenant('id'),
]; ];
} }
``` ```