Connect your application with Inspector.

Type the command below in your terminal to install the latest version of the package:

composer require inspector-apm/inspector-laravel

Server requirements

  • PHP >= 7.0.0

  • Laravel >= 5.5

Configure the API key

Get a fresh API key by signing up for Inspector ( and creating a new application.

Put the Inspector API key in your environment file:


Test everything is working

Create a test route that simply fires an unhandled exception. In your routes/web.php file paste the code below:

Route::get('test', function () {
throw new \Exception('First Exception detected');

Open this route in you browser to test the connection between your app and Inspection API. You should receive your first notification about exception detection.

Background Monitoring

By default Inspector will monitor everything executed in background:

  • Queued Jobs

  • Artisan commands

  • Unhandled Exceptions

If you want learn more about background jobs monitoring take a look on our article:‚Äč

Go the Http Request Monitoring section to understand how to trace your application when it's executed due to an http request.