pyaesoneaung/to-raw-sql
Inspect the SQL behind your Laravel query builder and Eloquent queries. to-raw-sql converts builders into readable raw SQL strings, making debugging, logging, and optimization simple. A lightweight helper with a clean API for development.
pyaesoneaung/to-raw-sql is a lightweight Laravel package that lets you inspect the exact SQL your Query Builder and Eloquent queries will run. Instead of logging a query string with ? placeholders and a separate bindings array, it renders the final statement with all bindings safely inlined—so you can copy, paste, and debug directly in your database client.
toRawSql(), dumpRawSql(), and ddRawSql() to query and Eloquent builderswhere, joins, and nested query logicHow can I help you explore Laravel packages today?