Answer the question
In order to leave comments, you need to log in
How to log SQL queries in laravel?
I use this code to log
\DB::listen(function($sql) {
\Log::info($sql->sql);
});
[2020-01-28 19:16:31] local.INFO: select * from `users` where `id` = ? limit 1
?
. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question