1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 10:54:04 +00:00
tenancy/source/docs/telescope.md
Samuel Štancl 59a3325f1d
[1.8.0][WIP] Update docs (#105)
* Add jobs & horizon pages

* Apply fixes from StyleCI

* Telescope integration

* Integrations page

* Apply fixes from StyleCI

* Add testing section

* Conflicting routes

* Misc tips

* Apply fixes from StyleCI
2019-08-23 22:43:02 +02:00

1.1 KiB

title description extends section
Telescope Integration Telescope Integration with stancl/tenancy — A Laravel multi-database tenancy package that respects your code.. _layouts.documentation content

Telescope Integration

Requests in Telescope are automatically tagged with the tenant uuid and domain:

Telescope Request with tags

This lets you filter requests by uuid and domain:

Filtering by uuid Filtering by domain

If you'd like to set Telescope tags in your own code, e.g. in your AppServiceProvider, replace your Telescope::tag() call like this:

\Tenancy::integrationEvent('telescope', function ($entry) {
    return ['abc']; // your logic
});

Tenancy tags merged with tag abc

Once Telescope 3 is released, you won't have to do this.

To have Telescope working, make sure your telescope.storage.database.connection points to a non-tenant connection. It's that way by default, so for most projects, Telescope should work out of the box.