Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Mego's avatar
Level 1

Show actual sql queries

I need to show somehow the sql queries, which is builded by laravel query builder. I can get them only when I purposely make an error (like write table(usrs) instead of table(users)), then I receive an laravel error message, that table usrs doesn't exist and the whole query there. But I believe, there is better way to get the query... ?

0 likes
5 replies
Mego's avatar
Level 1

Nice bro. Is there no "developer toolbar", or something like this, which can monitor queries, performance etc.?

Mego's avatar
Level 1

That Barryvdh/laravel-debugbar is what I exactly need ;) Thank you bro

Please or to participate in this conversation.