Last active
January 18, 2017 18:36
-
-
Save mogarick/f821fe7dedc8ed2531e5ba1aade57b68 to your computer and use it in GitHub Desktop.
Log de queries generadas por Laravel Eloquent
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
<?php | |
// Display all SQL executed in Eloquent | |
//source: http://laravel-tricks.com/tricks/display-all-sql-executed-in-eloquent | |
Event::listen('illuminate.query', function($query){Log::debug($query);}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment