/** * @param \Notadd\Foundation\Database\Query\Expression|string $value * @param bool $prefixAlias * @return string */ public function wrap($value, $prefixAlias = false) { if ($value instanceof Fluent) { $value = $value->name; } return parent::wrap($value, $prefixAlias); }
/** * @param \Notadd\Foundation\Database\Grammar $grammar * @return \Notadd\Foundation\Database\Grammar */ public function withTablePrefix(Grammar $grammar) { $grammar->setTablePrefix($this->tablePrefix); return $grammar; }