Skip to content

Commit b59d4e2

Browse files
committed
Updating doc
1 parent 84b1c74 commit b59d4e2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,17 @@ Using locale, the package will look for a resources/lang/{CURRENT_LANG}/forms/us
412412
{!!Form::text('name', 'Name')->attrs(['data-foo' => 'bar', 'rel'=> 'baz'])!!}
413413
```
414414

415+
### Custom attributes in wrapper div (\<div class="form-group">...\</div>)
416+
417+
| Param | Type | Default | Description |
418+
| ------- | ----- | ------- | ----------------------- |
419+
| \$attrs | array | [] | Custom input attributes |
420+
421+
```php
422+
// Example
423+
{!!Form::text('name', 'Name')->wrapperAttrs(['data-foo' => 'bar', 'id'=> 'name-wrapper'])!!}
424+
```
425+
415426
### Readonly
416427

417428
| Param | Type | Default | Description |

0 commit comments

Comments
 (0)