You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Using any of these methods will automatically append the **csrf \_token** and correct **route type \_method** fields.
19
+
* If a model is passed via the `'model'` key, We will use it's data to populate the form fields value.
20
+
* Anything passed via the `'extra'` array will be appended as attributes to the form.
21
+
22
+
### Form Close
23
+
```
24
+
@endform
25
+
```
26
+
27
+
#### Notes
28
+
* The form is actually a component, which means you need to close it after you're done.
29
+
* This will also unbind the `'model'` so future forms on the same page are not affected.
30
+
31
+
32
+
### Form Field
33
+
Now we get into the fun stuff. The minimum required for a form field is a name
34
+
```
35
+
@formField(['name' => 'first_name'])
36
+
```
37
+
This will render a `type="text"` form field wrapped in a form group with the label of `First Name` and an appropriate value, Additionally this will handle displaying server validation errors.
0 commit comments