Laravel 5.3 - How to log all queries on a page?

后端 未结 7 1575
生来不讨喜
生来不讨喜 2020-12-24 12:48

My team and I are working on a rather big project. There\'s queries going on everywhere - in controllers, in view composers in views (lazy loading) and probably in some othe

7条回答
  •  太阳男子
    2020-12-24 13:24

    add a middleware that executes after the request is done and logs your queries ... see Terminable Middlwares

提交回复
热议问题