Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * @return bool|mixed|null|string
  */
 public function output()
 {
     if ($this->isHidden()) {
         return;
     }
     if ($this->withWidgets) {
         $this->applyWidgets();
     }
     return parent::output();
 }