/** * Get array replacements. * * @return array */ public function getReplacements() { return array_merge(parent::getReplacements(), ['fillable' => $this->getFillable()]); }
/** * Get array replacements. * * @return array */ public function getReplacements() { return array_merge(parent::getReplacements(), ['rules' => $this->getRules()]); }
/** * Get array replacements. * * @return array */ public function getReplacements() { $repository = parent::getRootNamespace() . parent::getConfigGeneratorClassPath('interfaces') . '\\' . $this->name . 'Repository;'; $repository = str_replace(["\\", '/'], '\\', $repository); return array_merge(parent::getReplacements(), ['fillable' => $this->getFillable(), 'use_validator' => $this->getValidatorUse(), 'validator' => $this->getValidatorMethod(), 'use_presenter' => $this->getPresenterUse(), 'root_namespace' => parent::getRootNamespace(), 'presenter' => $this->getPresenterMethod(), 'repository' => $repository, 'model' => isset($this->options['model']) ? $this->options['model'] : '']); }
/** * Get array replacements. * * @return array */ public function getReplacements() { return array_merge(parent::getReplacements(), ['fillable' => $this->getFillable(), 'use_base_model' => 'use ' . $this->getRootNamespace() . '\\BaseModel;']); }