PHP code example of arcana / laravel-pulse-s3-metrics

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

    

arcana / laravel-pulse-s3-metrics example snippets


return [

    'enabled' => env('PULSE_S3_METRICS_ENABLED', true),

    'key' => env('AWS_ACCESS_KEY_ID'),

    'secret' => env('AWS_SECRET_ACCESS_KEY'),

    'region' => env('AWS_DEFAULT_REGION'),

    'bucket' => env('AWS_BUCKET'),

    'class' => env('AWS_STORAGE_CLASS', 'StandardStorage'),
    
];

'recorders' => [
    
    // Existing recorders...
    // ...
    
    \Arcana\PulseS3Metrics\Recorders\S3Metrics::class => [
        'enabled' => env('PULSE_S3_METRICS_ENABLED', true),
    ],
    
],
bash
php artisan vendor:publish --tag="laravel-pulse-s3-metrics-config"
bash
php artisan vendor:publish --tag=pulse-config
bash
php artisan vendor:publish --tag=pulse-dashboard
bash
php artisan pulse:check