Created
July 8, 2013 18:06
-
-
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`.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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