Installation

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 (https://app.inspector.dev/register) and creating a new application.

Put the Inspector API key in your environment file:

INSPECTOR_API_KEY=[api key]

Test everything is working

Execute our test command to check if your app send data to inspector correctly:

php artisan inspector:test

Go to https://app.inspector.dev/home to explore your data.

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: https://www.inspector.dev/laravel-background-jobs-commands-monitoring-with-inspector/‚Äč

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