Skip to content

Commit 31f5f22

Browse files
committedJan 8, 2016
Update for QueryExecuted changed
It looks like when you call `DB::listen()`, you no longer receive multiple parameters for the `$sql` and `$bindings`. Instead, you get a `QueryExecuted` DTO. This PR updates the docs to reflect that.
1 parent f71ab2d commit 31f5f22

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎database.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,10 @@ If you would like to receive each SQL query executed by your application, you ma
140140
*/
141141
public function boot()
142142
{
143-
DB::listen(function($sql, $bindings, $time) {
144-
//
143+
DB::listen(function($query) {
144+
// $query->sql
145+
// $query->bindings
146+
// $query->time
145147
});
146148
}
147149

0 commit comments

Comments
 (0)
Please sign in to comment.