/** * Get template replacements. * * @return array */ public function getReplacements() { $replacements = parent::getReplacements(); if ($this->scaffold || $this->repository) { return array_merge($replacements, $this->scaffolder->toArray()); } return $replacements; }
/** * Get stub replacements. * * @return array */ public function getReplacements() { return array_merge(parent::getReplacements(), ['table_one' => $this->table_one, 'table_two' => $this->table_two, 'column_one' => $this->getColumnOne(), 'column_two' => $this->getColumnTwo(), 'table_pivot' => $this->getPivotTableName(), 'timestamp' => $this->getTimestampReplacement()]); }
/** * Get array replacements. * * @return array */ public function getReplacements() { return array_merge(parent::getReplacements(), ['fillable' => $this->getFillable(), 'table_name' => $this->getTableName(), 'relations' => '', 'rules' => $this->getFieldRules()]); }
/** * Get array replacements. * * @return array */ public function getReplacements() { return array_merge(parent::getReplacements(), ['translations' => $this->getTranslations()]); }
/** * Get stub replacements. * * @return array */ public function getReplacements() { return array_merge(parent::getReplacements(), ['auth' => $this->getAuth(), 'rules' => $this->getRules()]); }
/** * Get array replacements. * * @return array */ public function getReplacements() { return array_merge(parent::getReplacements(), (new ParameterScaffolder($this->getName(), null, 'repository'))->toArray()); }
/** * Get array replacements. * * @return array */ public function getReplacements() { return array_merge(parent::getReplacements(), ['fields' => $this->render()]); }