bug fixes and new additions
This commit is contained in:
@@ -21,11 +21,10 @@ class Controller extends BaseController{
|
||||
public function log_query() {
|
||||
// , $binding, $timing 'bindings' => $binding)
|
||||
\DB::listen(function ($sql) {
|
||||
\Log::info('Showing query', array('sql' => $sql));
|
||||
$encoded_sql = json_encode($sql);
|
||||
$this->sendNtfy("Showing Query : " . $encoded_sql);
|
||||
}
|
||||
);
|
||||
\Log::info('Showing query', array('sql' => $sql));
|
||||
$encoded_sql = json_encode($sql);
|
||||
$this->sendNtfy("Showing Query : " . $encoded_sql);
|
||||
});
|
||||
}
|
||||
|
||||
public function sendNtfy($data){
|
||||
|
||||
Reference in New Issue
Block a user