mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
640 B
640 B
| title | extends | section |
|---|---|---|
| Laravel Horizon integration | _layouts.documentation | content |
Laravel Horizon
Note: Horizon is only accessible on the central domain. You can separate the jobs by tagging them with tenant IDs.
Make sure your [queues]({{ $page->link('queues') }}) are configured correctly before using this.
Tags
You may add the current tenant's ID to your job tags by defining a tags method on the class:
/**
* Get the tags that should be assigned to the job.
*
* @return array
*/
public function tags()
{
return [
'tenant:' . tenant('id'),
];
}