By default, the query log is disabled in Laravel 5:
Don’t worry, you can enable the query log by running the following:
Then you can display the log like this:
Or alternatively, you can register an event listener and listen for logs:
Got an article suggestion?
Let us know
BY
NC
SA
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.