Ajay Patel
Laravel toRawSql(): see the real SQL behind a query, then log every query a request runs
Laravel toRawSql() prints a query with its bindings filled in. See how it differs from toSql(), what ddRawSql() does, and how to log every query.
Read the post