darsain / laravel-console

In-browser console for Laravel PHP framework.
170 stars 44 forks source link

Display a list of executed SQL queries #5

Closed darsain closed 11 years ago

darsain commented 11 years ago

Alongside execution times and used memory info, include a list of executed SQL queries and time they took to execute.

darsain commented 11 years ago

Event used for logging queries:

Event::listen('laravel.query', function($sql, $bindings, $time)
{
    // log somewhere
});
markwu commented 11 years ago

I just implemented this by myself, I attach the query result after the output result. I will make a pull request to you later.

Mark

darsain commented 11 years ago

I hope you like it :)

Preview

markwu commented 11 years ago

So, cool! I really like it. Thanks!!!