Press "Enter" to skip to content

Listening your sql queries in laravel

Sharing is caring!

If we ever need to know how many SQL queries happen in our application, we can use this bit of snippet.

Then, make an request to the application and view the SQL logs in your laravel.log file located inside storage/logs.

Alternatively, if you want more advanced tools for your development environment, use this debugbar.

Comments are closed.