Skip to content

Commit 6381b8e

Browse files
committed
Inject the connection into Grammar classes
laravel/framework#54487
1 parent 0cbc826 commit 6381b8e

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
@@ -355,13 +355,13 @@ protected function getDefaultPostProcessor()
355355
/** @inheritdoc */
356356
protected function getDefaultQueryGrammar()
357357
{
358-
return new Query\Grammar();
358+
return new Query\Grammar($this);
359359
}
360360

361361
/** @inheritdoc */
362362
protected function getDefaultSchemaGrammar()
363363
{
364-
return new Schema\Grammar();
364+
return new Schema\Grammar($this);
365365
}
366366

367367
/**

0 commit comments

Comments
 (0)