Skip to content

Instantly share code, notes, and snippets.

@cmbirk
Created April 8, 2015 20:54
Show Gist options
  • Save cmbirk/f3c528a7707beccbaa76 to your computer and use it in GitHub Desktop.
Save cmbirk/f3c528a7707beccbaa76 to your computer and use it in GitHub Desktop.
Laravel display all queries
//Thanks to http://laravel-tricks.com/tricks/display-all-sql-executed-in-eloquent
//Put this in your routes.php file
// Display all SQL executed in Eloquent
Event::listen('illuminate.query', function($query)
{
var_dump($query);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment