webdelo / laravel-telescope-route
Plugin helps to hide telescope from public on API backend.
Requires (Dev)
- laravel/framework: ^6.0@dev
This package is auto-updated.
Last update: 2025-06-29 02:00:42 UTC
README
Plugin helps to hide telescope from public on API backend.
If you have to review some processes on your production API backend, you can just enable Telescope.
If you have to review some processes on your production API backend in safety from foreign eyes, you should use this plugin.
Standard gate that authorize user for Telescope dashboard uses session authorization mechanism that does not work on API with token authorization provided.
Installation
composer require webdelo/laravel-telescope-route
config/telescope.php
<?php use \Webdelo\TelescopeRoute\Facades\TelescopeRoute; return [ //... /* |-------------------------------------------------------------------------- | Telescope Path |-------------------------------------------------------------------------- | | This is the URI path where Telescope will be accessible from. Feel free | to change this path to anything you like. Note that the URI will not | affect the paths of its internal API that aren't exposed to users. | */ 'path' => env('TELESCOPE_PATH', TelescopeRoute::route()), //... ];
Usage
Generate or get unique route for telescope
php artisan telescope:route
Refresh unique route for telescope
php artisan telescope:route-refresh