PHP code example of scabarcas / laravel-config-explorer

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

    

scabarcas / laravel-config-explorer example snippets


return [
    // null = auto-detect (debug + non-production); true/false to force.
    'enabled' => env('CONFIG_EXPLORER_ENABLED'),

    'route' => [
        'prefix'     => 'config-explorer',
        'middleware' => ['web'],
        'name'       => 'config-explorer.show',
    ],

    'redact_patterns' => [
        '*password*',
        '*secret*',
        '*token*',
        // ...add patterns specific to your app
    ],
];

'enabled'    => true,
'middleware' => ['web', 'auth', 'can:viewConfigExplorer'],
bash
php artisan vendor:publish --tag=config-explorer-config