It is very useful for a developer to trace the each query that runs in the server including the performance by the time the query executed.
There is a lot of package/library that can suit to your requirement which can just plug and play. But some of developer just to make their own solution.
Therefore, Laravel have an event called QueryExecuted
. This event return such as time execution, sql…