/** * 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; }
/** * Field constructor. * @param $name * @param null $value * @param array $options */ public function __construct($name, $value = null, $options = []) { parent::__construct($name, $value, $options); $this->widgets = $this->getInstalledWidgets(); }