Home > Back-end >  Laravel Debugbar with laravel api routes
Laravel Debugbar with laravel api routes

Time:03-13

I have a Laravel API.

The front end application is completely separate from Laravel.

All Laravel routes are located in routes/api.php

Is there any way to make the Laravel Debugbar work in this case?

https://github.com/barryvdh/laravel-debugbar

CodePudding user response:

barryvdh/laravel-debugbar needs to be installed on your Laravel project (actually all debuggers need to be present within the project to audit every request) and get its files served to the frontend to work (edit repsonses with Middleware/InjectDebugbar.php).

I won't say that it is impossible to get its insights on a separate front, who knows if you are ready to fork the project and communicate with the debug bar APIs.

For a simpler alternatives you can use:

  1. laravel/telescope docs repo
  2. Clockwork browser extension website repo
  3. spatie/laravel-ray(paid) website docs
  • Related