Package Data | |
---|---|
Maintainer Username: | valerione |
Maintainer Contact: | valerio@inspector.dev (Valerio Barbera) |
Package Create Date: | 2019-04-16 |
Package Last Update: | 2024-10-24 |
Home Page: | https://inspector.dev |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-15 15:22:24 |
Package Statistics | |
---|---|
Total Downloads: | 1,342,669 |
Monthly Downloads: | 31,522 |
Daily Downloads: | 196 |
Total Stars: | 212 |
Total Watchers: | 5 |
Total Forks: | 15 |
Total Open Issues: | 2 |
Install the latest version of our package by:
composer require inspector-apm/inspector-laravel
First put the Inspector API KEY in your environment file:
INSPECTOR_API_KEY=[api key]
You can obtain INSPECTOR_API_KEY
creating a new project in your Inspector dashboard.
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' => [
...,
\Inspector\Laravel\Middleware\WebRequestMonitoring::class,
],
'api' => [
...,
\Inspector\Laravel\Middleware\WebRequestMonitoring::class,
]
Run the command below:
php artisan inspector:test
Go to https://app.inspector.dev/home to explore your data.
This package are licensed under the MIT license.