public function types(Request $request, array $types)
    {
        foreach ($types as $type) {
            $field = new $type($request);
            $this->type($field->singularLabel(), $type::$model, $field->fields($request));
        }

        return $this;
    }
public function types(Request $request, array $types)
    {
        foreach ($types as $type) {
            $field = new $type($request);
            $this->type($field->singularLabel(), $type::$model, $field->fields($request));
        }

        return $this;
    }
public function types ( Request $ request , array $ types ) { foreach ( $ types as $ type ) { $ field = new $ type ( $ request ) ; $ this -> type ( $ field -> singularLabel ( ) , $ type :: $ model , $ field -> fields ( $ request ) ) ; } return $ this ; }
Register multiple fields for a Polymorphic relationship

@param Request $request
@param array $types Array of Nova fields
@return self
Register multiple fields for a Polymorphic relationship