unsplash.com

Debugging Query in Laravel

Hafiq Iqmal
2 min readJan 10, 2021

--

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…

--

--

Hafiq Iqmal

Tech Lead Developer | Software Engineer | Laravel Enthusiasts | CTF Newbie | Medium writer | UiTM Alumni | Husband | Proud father of a beautiful daughter