PHP code example of morrislaptop / laravel-pulse-4xx

1. Go to this page and download the library: Download morrislaptop/laravel-pulse-4xx 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/ */

    

morrislaptop / laravel-pulse-4xx example snippets


return [
    // ...

    'recorders' => [
        Morrislaptop\LaravelPulse4xx\FourXxRecorder::class => [
            'enabled' => env('PULSE_4XX_ENABLED', true),
            'sample_rate' => env('PULSE_4XX_SAMPLE_RATE', 1),
            'ignore' => [
                '#^/wp-admin#', // Classic WordPress...
                '#^/wp-login#',
                '#^/wp-config#',
                '#^/xmlrpc\.php#',
                '#^/browserconfig\.xml#', // Microsoft junk
            ],
        ],

        // ...
    ]
]
bash
php artisan vendor:publish --tag=pulse-dashboard