Closed zarpelon closed 3 years ago
Hey Sirs,
Today to debug a query and your bindings, we need to write:
dd($query->toSql(), $query->getBindings());
Is there a way to create specific method that your output is the SQL + bindings? Like $query->toSqlWithBindings()
Make sense?
https://github.com/laravel/framework/blob/d30dbebba270034bbba1316f5c0fe7579bc20408/src/Illuminate/Database/Query/Builder.php#L3277-L3287
Tks @crynobone
Hey Sirs,
Today to debug a query and your bindings, we need to write:
dd($query->toSql(), $query->getBindings());
Is there a way to create specific method that your output is the SQL + bindings? Like $query->toSqlWithBindings()
Make sense?