Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

larave log all query

DB::listen(function ($query) {
    var_dump([
        $query->sql,
        $query->bindings,
        $query->time
    ]);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #larave #log #query
ADD COMMENT
Topic
Name
7+6 =