Created
April 8, 2015 20:54
-
-
Save cmbirk/f3c528a7707beccbaa76 to your computer and use it in GitHub Desktop.
Laravel display all queries
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
//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