Skip to content

Commit

Permalink
Update form.rst
Browse files Browse the repository at this point in the history
Added the method note
  • Loading branch information
davidyell authored Aug 16, 2018
1 parent 8417cff commit dc90fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/views/helpers/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ You can use the ``combine`` method to build a basic options array.
$options = $entitiesArray->combine('id', 'name');

It's also possible to add extra attributes by expanding the array. The following will create a data attribute on the
option element.
option element, using the ``map`` collection method.

$options = $entitiesArray->map(function ($value, $key) {
return [
Expand Down

0 comments on commit dc90fea

Please sign in to comment.