PHP code example of x-laravel / pulse-requests

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

    

x-laravel / pulse-requests example snippets


'recorders' => [
    \XLaravel\PulseRequests\Recorders\Requests::class => [
        'enabled' => env('PULSE_REQUESTS_ENABLED', true),
        'sample_rate' => env('PULSE_REQUESTS_SAMPLE_RATE', 1),
        'match' => 'path',
        'only' => [],
        'ignore' => [
            '#^/'.env('PULSE_PATH', 'pulse').'(/.*)?$#',
            '#^/'.env('HORIZON_PATH', 'horizon').'(/.*)?$#',
            '#^/'.env('TELESCOPE_PATH', 'telescope').'(/.*)?$#',
            '#^/livewire/#',
        ],
        'groups' => [],
        'fallback' => 'other',
    ],

    // ...
],

'match' => 'host_path',
'groups' => [
    '#^api\.#' => 'api',
    '#^ticket\.#' => 'ticket',
    '#^webhook\.#' => 'webhook',
],

'only' => ['#^/api/#'],
'ignore' => ['#^/api/health$#'],

'groups' => [
    '#^/api/internal/#' => 'api-internal',
    '#^/api/#' => 'api',
],

'sample_rate' => 0.1,
bash
php artisan vendor:publish --tag=pulse-requests-views