To output to the screen the last queries ran you can use this: LARAVEL

DB::enableQueryLog(); // Enable query log

// Your Eloquent query

//for e.g.,

 DB::Table('companies')->where('id', udecode($encId))->delete();

dd(DB::getQueryLog()); // Show results of log

Leave a Reply