Level 3
Adding api* to the except array config/debugbar.php does the fix.
https://github.com/barryvdh/laravel-debugbar/blob/master/config/debugbar.php#L19
5 likes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm using guzzle to make a request to an API. I realized that the returned response in json always have some logging information relating to laravel debugbar therefore making my json invalid.
I want to turn off this functionality so only the response from my api is returned without debugbar adding extra information to the response.
Adding api* to the except array config/debugbar.php does the fix.
https://github.com/barryvdh/laravel-debugbar/blob/master/config/debugbar.php#L19
Please or to participate in this conversation.