PHP code example of wamesk / laravel-telescope-dashboard
1. Go to this page and download the library: Download wamesk/laravel-telescope-dashboard library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wamesk / laravel-telescope-dashboard example snippets
return [
// Enable or disable the dashboard
'enabled' => env('TELESCOPE_DASHBOARD_ENABLED', true),
// URL path for the dashboard
'path' => env('TELESCOPE_DASHBOARD_PATH', 'telescope-dashboard'),
// Laravel gate used for authorization
'gate' => env('TELESCOPE_DASHBOARD_GATE', 'viewTelescope'),
// Database connection for telescope data
'connection' => env('DB_CONNECTION_TELESCOPE', 'mysql_telescope'),
// Default number of entries per page
'per_page' => 50,
// Maximum entries per page (security limit)
'max_per_page' => 200,
// Route group patterns for request filtering
'route_groups' => [
'api' => '/api/v*',
'nova-api' => '/nova-api/*',
'web' => '/*',
],
// Path to original Telescope (for "View in Telescope" links)
'telescope_path' => env('TELESCOPE_PATH', 'telescope'),
// Middleware applied to all dashboard routes
'middleware' => ['web', 'auth'],
];