PHP >= 7.2
Laravel >= 5.5
Type the command below in your terminal to install the latest version of the package:
composer require inspector-apm/inspector-laravel
If you have a cached version of your laravel configuration an error can appear in your console during installation like:
Error on Configuration.php...
You simply need to clear your cached configuration:
php artisan config:clear
and than run:
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:
test command to check if your app 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 http request.