PHP code example of ultimate-apm / ultimate-laravel
1. Go to this page and download the library: Download ultimate-apm/ultimate-laravel 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/ */
ultimate-apm / ultimate-laravel example snippets
$app->register(\Ultimate\Laravel\UltimateServiceProvider::class);
/**
* The application's route middleware groups.
*
* @var array
*/
protected $middlewareGroups = [
'web' => [
...,
\Ultimate\Laravel\Middleware\WebRequestMonitoring::class,
],
'api' => [
...,
\Ultimate\Laravel\Middleware\WebRequestMonitoring::class,
]
php artisan ultimate:test