PHP code example of mikegarde / laravel-datadog-batched

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

    

mikegarde / laravel-datadog-batched example snippets


return [
    'providers' => [
        MikeGarde\LaravelDataDogBatched\DataDogServiceProvider::class,
    ],
    
    'aliases' => [
        'DataDog' => MikeGarde\LaravelDataDogBatched\DataDogFacade::class,
    ],
];

protected $middleware = [
    \MikeGarde\LaravelDataDogBatched\DataDogMiddleware::class,
];

return [
	'enabled'         => (env('APP_ENV') === 'prod' || env('APP_ENV') === 'qa'),
	'prefix'          => 'app.APIv2',
];

return [
    'logger' => \MikeGarde\LaravelDataDogBatched\FileLogger::class,
];
bash
php artisan vendor:publish --provider="MikeGarde\LaravelDataDogBatched\DataDogServiceProvider"