PHP code example of almosabbirrakib / laravel-debugger

1. Go to this page and download the library: Download almosabbirrakib/laravel-debugger 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/ */

    

almosabbirrakib / laravel-debugger example snippets


return [
    // Enable/disable the debugger
    'enabled' => env('DEBUGGER_ENABLED', env('APP_DEBUG', false)),

    // Allowed environments
    'allowed_environments' => ['local', 'development', 'dev', 'testing'],

    // Toggle individual collectors
    'collectors' => [
        'request' => true,
        'route' => true,
        'queries' => true,
        'views' => true,
        'logs' => true,
        'performance' => true,
    ],

    // Query settings
    'queries' => [
        'max_queries' => 100,
    ],

    // Log settings
    'logs' => [
        'max_logs' => 50,
    ],

    // UI customization
    'ui' => [
        'position' => 'bottom', // bottom or top
        'theme' => 'dark',
    ],

    // Exclude routes
    'except' => [
        'debugger/*',
        '_debugbar/*',
    ],
];

'except' => [
    'api/*',
    'webhooks/*',
    '_debugbar/*',
],

'queries' => [
    'max_queries' => 200, // Default: 100
],

'logs' => [
    'max_logs' => 100, // Default: 50
],
bash
php artisan vendor:publish --tag=debugger-config
bash
php artisan vendor:publish --tag=debugger-assets