8 Laravel Tools to Debug SQL Queries

  • Laravel Debug Bar: Shows amount of queries, duplicated queries, and more.
  • Laravel Telescope: Official tool from Laravel team, shows SQL queries with duration.
  • Clockwork: Similar to Debug Bar, lands inside of the development tools in your browser.
  • Spotty Larray: Not a free tool, primary purpose is debugging in general, but also shows queries.
  • tosql: Method inside of Laravel, shows the actual query.
  • dump raw SQL and DD raw SQL: Improved methods in Laravel 10.15, includes all parameters with their real values.
  • Lal pulse: Dashboard for monitoring, can show slower SQL queries.
  • Laravel MySQL explain: Package by Tobs Petri, helps understand the underlying MySQL sentence on SQL level.

via 8 Laravel Tools to Debug SQL Queries