Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonlabelle/5951035 to your computer and use it in GitHub Desktop.
Save jonlabelle/5951035 to your computer and use it in GitHub Desktop.
Laravel 4: Log all SQL queries and request URL. You can add it in `app/routes.php`.
Event::listen('illuminate.query', function($sql)
{
Log::info('Request URL: '.Request::url() .' Query: '.$sql);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment