Last active
December 29, 2016 12:33
-
-
Save lfbittencourt/ad31783bba4b4e952f0e to your computer and use it in GitHub Desktop.
How to log queries in Laravel 5
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 | |
\DB::enableQueryLog(); | |
$foo = Foo::find(1); | |
dd(\DB::getQueryLog()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment