I wrote a tutorial over on Scotch.io on debugging queries in Laravel. I go through three different ways, from using the
->toSql(), DB::listen, and the debugbar.
This is also my first time writing outside of my personal sites. So it was a lot of fun to see how the big sites operate.