mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:34:03 +00:00
Introduce integration events, drop
This commit is contained in:
parent
4342c5eb1b
commit
4c80ba78d3
2 changed files with 44 additions and 7 deletions
|
|
@ -59,13 +59,8 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
|
||||
public function setTelescopeTags()
|
||||
{
|
||||
$original_callback = Telescope::$tagUsing;
|
||||
|
||||
Telescope::tag(function (\Laravel\Telescope\IncomingEntry $entry) use ($original_callback) {
|
||||
$tags = [];
|
||||
if (! \is_null($original_callback)) {
|
||||
$tags = $original_callback($entry);
|
||||
}
|
||||
Telescope::tag(function (\Laravel\Telescope\IncomingEntry $entry) {
|
||||
$tags = $this->integration('telescope', $entry);
|
||||
|
||||
if (\in_array('tenancy', request()->route()->middleware())) {
|
||||
$tags = \array_merge($tags, [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue