mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
* chore: (Improve documentation search for V3) * fix: checks for mispelled words * fix: mispelled words * fix spaces and syntax * Update multi-database-tenancy.blade.md Co-authored-by: Samuel Stancl <samuel.stancl@gmail.com>
27 lines
No EOL
509 B
Markdown
27 lines
No EOL
509 B
Markdown
---
|
|
title: Laravel Horizon integration
|
|
extends: _layouts.documentation
|
|
section: content
|
|
---
|
|
|
|
# Laravel Horizon {#laravel-horizon}
|
|
|
|
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:
|
|
|
|
```php
|
|
/**
|
|
* Get the tags that should be assigned to the job.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function tags()
|
|
{
|
|
return [
|
|
'tenant:' . tenant('id'),
|
|
];
|
|
}
|
|
``` |