Simple code execution monitoring and bug reporting for Laravel developers.
- PHP >= 7.2.0
- Laravel >= 5.5
Install the latest version of our package by:
composer require ultimate-apm/ultimate-laravel
If your application is based on Lumen you need to manually register the UltimateServiceProvider
:
$app->register(\Ultimate\Laravel\UltimateServiceProvider::class);
First put the Ingestion Key in your environment file:
ULTIMATE_INGESTION_KEY=[your ingestion key]
You can obtain an ULTIMATE_INGESTION_KEY
creating a new project in your Palzin APM account.
To monitor web requests you can attach the WebMonitoringMiddleware
in your http kernel or use in one or more route groups based on your personal needs.
/**
* The application's route middleware groups.
*
* @var array
*/
protected $middlewareGroups = [
'web' => [
...,
\Ultimate\Laravel\Middleware\WebRequestMonitoring::class,
],
'api' => [
...,
\Ultimate\Laravel\Middleware\WebRequestMonitoring::class,
]
Run the command below:
php artisan ultimate:test
Go to https://www.palzin.app/ to explore your data.
This package is licensed under the MIT license.