amitmerchant1990 / amitmerchant-dot-com-comments

1 stars 0 forks source link

printing-raw-mysql-queries-with-bindings-in-laravel-10x/ #92

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Printing raw SQL queries with bindings in Laravel 10.x — Amit Merchant — A blog on PHP, JavaScript, and more

Perhaps the most anticipated feature that all Laravel developers were waiting for is finally going to be available in the framework. Yes, I’m talking about the ability to print raw SQL queries with bindings in Laravel 10.x.

https://www.amitmerchant.com/printing-raw-mysql-queries-with-bindings-in-laravel-10x/

praisedare commented 1 year ago

I remember a while ago when I wanted to debug a complex search macro that could also search within relationships, I had to use laravel debugbar to see the actual sql queries that were executed - it was horrible, it shows you the entire query on one single line, no line breaks or indentation whatsoever, but this is so much better.