Press "Enter" to skip to content

Listening your sql queries in laravel

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.

Be First to Comment

    Leave a Reply

    Your email address will not be published.