Created
February 19, 2016 12:00
-
-
Save bkno/cc756726539801b9f049 to your computer and use it in GitHub Desktop.
Debug eloquent 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 | |
use DB; | |
DB::enableQueryLog(); | |
// execute queries here | |
dd(DB::getQueryLog()); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment