Created
February 7, 2023 09:01
-
-
Save khoa-le/120e59dd87a3001ff30ecbf7f4494f96 to your computer and use it in GitHub Desktop.
Get SQL Log and time execute of Laravel Query Builder
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::enableQueryLog(); // Enable query log | |
// Your Eloquent query executed by using get() | |
dd(\DB::getQueryLog()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment