mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:34:04 +00:00
[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
This commit is contained in:
parent
dcc7a8a210
commit
59a3325f1d
8 changed files with 191 additions and 8 deletions
29
source/docs/telescope.md
Normal file
29
source/docs/telescope.md
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: Telescope Integration
|
||||
description: Telescope Integration with stancl/tenancy — A Laravel multi-database tenancy package that respects your code..
|
||||
extends: _layouts.documentation
|
||||
section: content
|
||||
---
|
||||
|
||||
# Telescope Integration
|
||||
|
||||
Requests in Telescope are automatically tagged with the tenant uuid and domain:
|
||||
|
||||

|
||||
|
||||
This lets you filter requests by uuid 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