Hi, I’m Valerio, software engineer from Italy and CTO at Inspector. In this guide I’ll show you how to put your Controller/method pairs under real-time monitoring and get a clear picture of what controllers and methods are executed in your Laravel application with a complete inspection analysis. Many of us continue to discover bugs and errors in the applications thanks to direct reports by users.
Inspector is a composer package to add real-time monitoring in your Laravel application, it’s very easy to install and use, and it takes less than one minute to get started.
Basically you can attach the middleware in the App\Http\Kernel class in one or more of your predefined middleware groups: If you prefer to have a clear visibility of what controller and method are executed based on any HTTP request, you can use the code below inside the boot method of one of your ServiceProvider.