Ejemplo n.º 1
0
 /**
  * Get the form field names.
  *
  * @return array
  */
 public function getFormFieldNames()
 {
     $fields = $this->form->getFields();
     return $fields->lists('field_name')->all();
 }
Ejemplo n.º 2
0
 /**
  * Merge fields into the form.
  *
  * @param Form $parent
  * @param Form $child
  */
 protected function mergeFields(Form $parent, Form $child)
 {
     foreach ($child->getFields() as $field) {
         $parent->addField($field);
     }
 }