Simple Code Execution Monitoring for Laravel applications.


Total Downloads Latest Stable Version License

Simple code execution monitoring, built for Laravel developers.


  • PHP >= 7.2.0
  • Laravel >= 5.5


Install the latest version by:

composer require inspector-apm/inspector-laravel

For Lumen

If your application is based on Lumen you need to manually register the InspectorServiceProvider:


Configure the Ingestion Key

First put the Ingestion Key in your environment file:


You can obtain an INSPECTOR_INGESTION_KEY creating a new project in your Inspector account.

Attach the Middleware

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' => [

    'api' => [

Test everything is working

Run the command below:

php artisan inspector:test

Go to to explore your data.

Official documentation

See official documentation


This package is licensed under the MIT license.