Created
July 10, 2015 04:03
-
-
Save trevorgreenleaf/0b9652d2063861945546 to your computer and use it in GitHub Desktop.
Laravel Query Debug
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
DB::connection()->enableQueryLog(); | |
$query = DB::getQueryLog(); | |
$lastQuery = end($query); | |
dd($lastQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment