title: Log/Save all SQL Queries executed from laravel
body: <p>We are facing a very critical and strange issue, few data is missing after a long process. We are processing cargo data, one shipment may contain 1000 of boxes from 1000 customers. Each customers will get his own tracking number(awb number), we will be adding 1000 of shipments together in a shipment number and we will update each process using shipment number. When we update a shipment number all the associated shipments will be updated. In this process we are not updating shipper/consignee details, but after this process random shipper and consignee data is got deleted. We have analysed the entire code for 1 week and we have no clue where exactly its getting deleted. Its a production issue and we are in a very critical stage. We were not able to reproduce this issue in our environment. But this is randomly reporting from client side from different branches.</p>
  
  <p>To figure out the issue we decided to add more logs and want to have a strict monitoring on the executing SQL statement. Is there anyway I have to log/save the executing queries from Laravel(both DB &amp; Eloquent models).
  What I am expecting is if I add a piece of code in laravel framework class, it must log the sql query in a file/database so that we will not miss any queries.</p>
  
  <p>We started analysing the logs but still no clue, Can anyone suggest how to figure out this issue?</p>
  
  <p>We are using Laravel 5.5</p>