We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14348be commit f0b397aCopy full SHA for f0b397a
src/Helpers/DatabaseHelper.php
@@ -17,6 +17,11 @@ class DatabaseHelper
17
*/
18
public function buildRawSql(Connection $db, string $sql, array $bindings = []): string
19
{
20
+ $grammar = $db->getQueryGrammar();
21
+ if (method_exists($grammar, 'substituteBindingsIntoRawSql')) {
22
+ return $grammar->substituteBindingsIntoRawSql($sql, $bindings);
23
+ }
24
+
25
$escapedBindings = [];
26
foreach ($db->prepareBindings($bindings) as $binding) {
27
if ($binding === null) {
0 commit comments