Skip to content

Commit 9542435

Browse files
committed
Inject the connection into Grammar classes
laravel/framework#54487
1 parent 033c4ae commit 9542435

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,13 @@ protected function getDefaultPostProcessor()
327327
/** @inheritdoc */
328328
protected function getDefaultQueryGrammar()
329329
{
330-
return new Query\Grammar();
330+
return new Query\Grammar($this);
331331
}
332332

333333
/** @inheritdoc */
334334
protected function getDefaultSchemaGrammar()
335335
{
336-
return new Schema\Grammar();
336+
return new Schema\Grammar($this);
337337
}
338338

339339
/**

0 commit comments

Comments
 (0)