Skip to content

Commit 94bd172

Browse files
authored
add extra value to passed to form (#7)
1 parent 298e589 commit 94bd172

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Gustiawan/FormBuilder/Form.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ class Form
4545
"color" => null
4646
];
4747

48+
public $extra = null;
49+
4850
/**
4951
* Construct the form head with given options
5052
*
@@ -55,6 +57,7 @@ public function __construct(array $options = [])
5557
$this->action = $options['action'];
5658
$this->method = $options['method'];
5759
$this->data = array_key_exists("data", $options) ? $options['data'] : [];
60+
$this->extra = array_key_exists("extra", $options) ? $options['extra'] : [];
5861

5962
$this->button['color'] = config('form_generator.style') == "tailwind" ? "bg-blue-400" : "btn-primary";
6063

0 commit comments

Comments
 (0)