How do I use Debugbar on an API server (with no views)
I'm building out an API server in Laravel 5.2 only outputting json (for a Vue.js SPA) and I want to use Laravel Debugbar, or a similar tool to monitor database queries. Should I still be able to view the toolbar? I presume not as I have no views and theres no mention on being able to use it, or not, for API only servers.
I've noticed files in storage/debugbar/... with squashed up .json which I have to run through a prettifier to read.
You can view the history of the Debugbar with the browse button (third from the right). If you have non-api page for the same app, you can open the API requests. You can filter by url/ip etc.
Actually, you can add something like "return 1" instead of returning json data for your api response and just call the api route from browser. Its the easiest way do debug api that i know.
Hi, everyone!
I keep encountering the same warning across various places, from Postman to the application itself.
Here's the error: Notice: file_put_contents(): Write of 73 bytes failed with errno=32 Broken pipe in {PROJECT_DIR}/vendor/laravel/framework/src/Illuminate/Foundation/resources/server.php on line 21.
Is there anything I'm messing with like .env or some configuration or permissions?