Looking to hire Laravel developers? Try LaraJobs

laravel-telescope-route maintained by webdelo

Description
Plugin helps to hide telescope from public on API backend.
Author
Last update
2019/12/02 18:28 (dev-master)
License
Links
Downloads
14

Comments
comments powered by Disqus

telescope-production

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