Skip to content

Commit

Permalink
Updating doc
Browse files Browse the repository at this point in the history
  • Loading branch information
netojose committed Jan 7, 2019
1 parent 84b1c74 commit b59d4e2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,17 @@ Using locale, the package will look for a resources/lang/{CURRENT_LANG}/forms/us
{!!Form::text('name', 'Name')->attrs(['data-foo' => 'bar', 'rel'=> 'baz'])!!}
```

### Custom attributes in wrapper div (\<div class="form-group">...\</div>)

| Param | Type | Default | Description |
| ------- | ----- | ------- | ----------------------- |
| \$attrs | array | [] | Custom input attributes |

```php
// Example
{!!Form::text('name', 'Name')->wrapperAttrs(['data-foo' => 'bar', 'id'=> 'name-wrapper'])!!}
```

### Readonly

| Param | Type | Default | Description |
Expand Down

0 comments on commit b59d4e2

Please sign in to comment.