Last active
November 13, 2024 14:50
-
-
Save akrez/b1d7900b7b5b4265e733f02bd4ed2d99 to your computer and use it in GitHub Desktop.
log all queries
This file contains hidden or 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::listen(function (QueryExecuted $query) { | |
info("🔵\t".$query->toRawSql()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment