One more fix about custom query grammar
This commit is contained in:
parent
23d23dd07c
commit
9003957b28
|
@ -75,7 +75,8 @@ protected function grammar()
|
||||||
|
|
||||||
if (isset(\Laravel\Database::$registrar[$this->driver()]))
|
if (isset(\Laravel\Database::$registrar[$this->driver()]))
|
||||||
{
|
{
|
||||||
return $this->grammar = \Laravel\Database::$registrar[$this->driver()]['query']();
|
$resolver = \Laravel\Database::$registrar[$this->driver()]['query'];
|
||||||
|
return $this->grammar = $resolver($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($this->driver())
|
switch ($this->driver())
|
||||||
|
|
Loading…
Reference in New Issue