Beispiel #1
0
 /**
  * Set the table prefix and return the grammar.
  *
  * @param  \Nova\Database\Grammar  $grammar
  * @return \Nova\Database\Grammar
  */
 public function withTablePrefix(Grammar $grammar)
 {
     $grammar->setTablePrefix($this->tablePrefix);
     return $grammar;
 }
Beispiel #2
0
 /**
  * Wrap a value in keyword identifiers.
  *
  * @param  string  $value
  * @return string
  */
 public function wrap($value)
 {
     if ($value instanceof Fluent) {
         $value = $value->name;
     }
     return parent::wrap($value);
 }