LaravelPackages.net
Acme Inc.
Toggle sidebar
wamesk/laravel-telescope

Laravel Telescope Tags Middleware

794
0
2.1.1
About wamesk/laravel-telescope

wamesk/laravel-telescope is a Laravel package for laravel telescope tags middleware. It currently has 0 GitHub stars and 794 downloads on Packagist (latest version 2.1.1). Install it with composer require wamesk/laravel-telescope. Discover more Laravel packages by wamesk or browse all Laravel packages to compare alternatives.

Last updated

Laravel Telescope Improve

Instalation

composer require wamesk/laravel-telescope
  • No setup is required.
  • Middleware is added via ServiceProvider in the package.

Adds fulltext search in path, content. Add tags to all requests.

| Key | .env | Default | Search without tag | Example | |----------|-------------------------|---------|:------------------:|-------------------------------------------------------------| | / | | | ✓ | /api/v1 | | Api | TELESCOPE_TAG_API | false | × | Api:GET /api/v1/users | | Code | TELESCOPE_TAG_CODE | true | ✓ | Code:1.2.3 | | Content | | | ✓ | Content:ip_address":"127.0.0.1" | | Date | TELESCOPE_TAG_DATE | false | ✓ | Date:2023-01-01 | | DateTime | TELESCOPE_TAG_DATE_TIME | false | ✓ | DateTime:2023-01-01 11:22:33 | | Email | TELESCOPE_TAG_EMAIL | true | × | Email:[email protected] or Email:none | | Errors | TELESCOPE_TAG_ERROR | true | × | Errors:true | | From | | | ✓ | From:2024-01-01, From:12:34, From:2024-01-01 12:34... | | Hour | TELESCOPE_TAG_HOUR | false | ✓ | Hour:0 - Hour:23 | | Method | TELESCOPE_TAG_METHOD | false | ✓ | Method:GET, Method:POST, Method:UPDATE... | | Month | TELESCOPE_TAG_MONTH | false | ✓ | Month:1 - Month:12 | | Path | TELESCOPE_TAG_PATH | true | ✓ | Path:/api/v1 | | Status | TELESCOPE_TAG_STATUS | false | ✓ | Status:200, Status:400, Status:500... | | Time | TELESCOPE_TAG_TIME | false | ✓ | Time:11:22 | | To | | | ✓ | To:2024-01-01, To:12:34, To:2024-01-01 12:34... | | Url | TELESCOPE_TAG_URL | false | ✓ | Url:/nova-api/user-groups?page=1&perPage=25 |

  • To disable fulltext search, set TELESCOPE_SEARCH=false in .env.
  • You can set the tag saving settings by adding a parameter to the .env e.g. TELESCOPE_TAG_CODE=false
  • It is possible to search according to these keys even if saving tags is not allowed.
  • By turning off the tag, you will only lose a quick filter.
  • Keys can be written in case-insensitive

Data pruning

The package contains command to pruning data. In .env it is possible to set the number of hours how much data to remember. (Default 48 hours)

TELESCOPE_PRUNE_HOURS=168

To cancel the command, set the value to false.

TELESCOPE_PRUNE_HOURS=false
Comments