Proposal] Bind optional binding to raw query Expression object · Issue #1776 · laravel/ideas · GitHub
![Taylor Otwell on X: "Next week a method requested for *years* lands in Laravel. The "toRawSql" method gives you the raw SQL of a query with all bindings substituted. 🔥 Just copy Taylor Otwell on X: "Next week a method requested for *years* lands in Laravel. The "toRawSql" method gives you the raw SQL of a query with all bindings substituted. 🔥 Just copy](https://pbs.twimg.com/media/Fzy_SIUagAEQ15p.jpg:large)
Taylor Otwell on X: "Next week a method requested for *years* lands in Laravel. The "toRawSql" method gives you the raw SQL of a query with all bindings substituted. 🔥 Just copy
![Printing raw SQL queries with bindings in Laravel 10.x — Amit Merchant — A blog on PHP, JavaScript, and more Printing raw SQL queries with bindings in Laravel 10.x — Amit Merchant — A blog on PHP, JavaScript, and more](https://www.amitmerchant.com/cdn/printing-raw-mysql-queries-with-bindings-in-laravel-10x.png)