Skip to content

Commit eeb57df

Browse files
authored
slightly shortening example
1 parent 91bb857 commit eeb57df

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Turbo/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,8 @@ for this situation.
161161
> Turbo Drive doesn't send element with empty value:
162162

163163
```php
164-
$form = $this->createFormBuilder($task)
165-
->add('task', TextType::class)
166-
->add('dueDate', DateType::class)
164+
$builder
165+
// ...
167166
->add('save', SubmitType::class, [
168167
'label' => 'Create Task',
169168
'attr' => [
@@ -175,8 +174,7 @@ $form = $this->createFormBuilder($task)
175174
'attr' => [
176175
'value' => 'save-and-add'
177176
]
178-
])
179-
->getForm();
177+
]);
180178
```
181179

182180
#### More Turbo Drive Info

0 commit comments

Comments
 (0)