I have installed: https://github.com/barryvdh/laravel-debugbar using composer.
I followed install procedures, and now done.
But how do I see my PDO mysql queries? I am building a RESTful api, without any HTML/view rendering.
Don't know if it is for any use, but heres some example of my code:
// the controller
public function feed($exclude = null) {
$feed = $this->item->feed()->with('attributes', 'images', 'user');
if($exclude)
$feed->whereNotIn('id', explode(',', $exclude));
return ['items' => $this->itemTransformer->transformCollection($feed->get()->toArray())]; // woud like to debug this query
}
// the router
Route::get('items/feed/{exclude?}', ['protected' => true, 'uses' => 'ItemsController@feed']);
Easy: