PHP >= 7.2
Laravel >= 5.5
To verify what version of PHP is installed on your server run this command in your terminal:
To know what is the Laravel version behind your application run this command in your application's main directory:
php artisan --version
Before installing the package you should clear your Laravel configuration to avoid unexpected error loading the default package config file.
Run the command below to clear your cached configuration:
php artisan config:clear
Type the command below in your terminal to install the latest version of the package:
composer require inspector-apm/inspector-laravel
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:
Execute the test command to check if your app can send data to inspector correctly:
php artisan inspector:test
https://app.inspector.dev/home to explore your data.
By default Inspector will monitor everything executed in background:
Go the Http Request Monitoring section to understand how to trace your application when it's executed due to an incoming http request.