mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
3.x redesign
This commit is contained in:
parent
857122540f
commit
f8f354c323
229 changed files with 201175 additions and 22440 deletions
31
source/docs/v2/telescope.blade.md
Normal file
31
source/docs/v2/telescope.blade.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
title: Telescope Integration
|
||||
description: Telescope Integration..
|
||||
extends: _layouts.documentation
|
||||
section: content
|
||||
---
|
||||
|
||||
# Telescope Integration
|
||||
|
||||
> To enable this feature, uncomment the `Stancl\Tenancy\Features\TelescopeTags::class` line in your `tenancy.features` config.
|
||||
|
||||
Requests in Telescope are automatically tagged with the tenant id and domain:
|
||||
|
||||

|
||||
|
||||
This lets you filter requests by id and 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:
|
||||
```php
|
||||
\Tenancy::integrationEvent('telescope', function ($entry) {
|
||||
return ['abc']; // your logic
|
||||
});
|
||||
```
|
||||

|
||||
|
||||
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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue