/** * Relation constructor. * @param $name * @param null $value * @param array $options */ public function __construct($name, $value = null, $options = []) { parent::__construct($name, $value, $options); $this->modelManager = Artificer::modelManager(); $this->modelSettings = $this->modelManager->current(); $this->currentModel = $this->modelSettings->model; }
/** * @return bool|mixed|null|string */ public function output() { if ($this->isHidden()) { return; } if ($this->withWidgets) { $this->applyWidgets(); } return parent::output(); }