Skip to content

Commit 1c9777d

Browse files
authored
Update Readme.md
1 parent 7c27295 commit 1c9777d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ The following order of precedence is used for calculating values for a form
7373
0. Attributes from the model provided to `@form`
7474
0. Values passed in directly e.g. `@formField(['name' => 'name', 'value' => 'John'])`.
7575

76+
Additionally if the final calculated value is an object and has a `getValue` method, this will be called.
77+
7678
### Note on _old_ input and multiple forms...
7779
Unfortunately, there's no way to scope Laravels `old($fieldName)` helper, meaning that if one form on a page has old input,
7880
all fields on the page with the same name will be populated with the old input.
@@ -93,4 +95,4 @@ If you don't have them already, add the following to your projects `.idea/blade.
9395
<data directive="@endform" />
9496
<data directive="@form" injection="true" prefix="&lt;?php function x(array $options) {}; x(" suffix="); ?&gt;" />
9597
<data directive="@formField" injection="true" prefix="&lt;?php function x(array $options) {}; x(" suffix="); ?&gt;" />
96-
```
98+
```

0 commit comments

Comments
 (0)