PHP code example of barbushin / laravel-datadog-helper
1. Go to this page and download the library: Download barbushin/laravel-datadog-helper 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/ */
barbushin / laravel-datadog-helper example snippets
php
// app/Http/Kernel.php
protected $middleware = [
...
\ChaseConey\LaravelDatadogHelper\Middleware\LaravelDatadogMiddleware::class
];
php
// config/app.php
'providers' => [
...
ChaseConey\LaravelDatadogHelper\LaravelDatadogHelperServiceProvider::class,
];
php
// config/app.php
'aliases' => [
...
'Datadog' => ChaseConey\LaravelDatadogHelper\Datadog::class
];
shell
php artisan vendor:publish --provider="ChaseConey\LaravelDatadogHelper\LaravelDatadogHelperServiceProvider"