diff --git a/src/Builder.php b/src/Builder.php index d5a81404..23f5ba9f 100644 --- a/src/Builder.php +++ b/src/Builder.php @@ -222,6 +222,12 @@ public function __call($method, $arguments) } } + if ($type = $this->getFieldType($method)) { + $name = array_shift($arguments); + + return $this->addField($name, $type, ...$arguments); + } + return parent::__call($method, $arguments); } }