/** * Get template replacements. * * @return array */ public function getReplacements() { $replacements = array_merge(parent::getReplacements(), ['root_namespace' => $this->getAppNamespace()]); if ($this->scaffold) { return array_merge($replacements, $this->scaffolder->toArray()); } return $replacements; }
/** * Get array replacements. * * @return array */ public function getReplacements() { return array_merge(parent::getReplacements(), ['fillable' => $this->getFillable()]); }
/** * Get stub replacements. * * @return array */ public function getReplacements() { return array_merge(parent::getReplacements(), ['auth' => $this->getAuth(), 'rules' => $this->getRules()]); }
/** * 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()]); }