Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

Commit

Permalink
Merge fab56d0 into bac19cb
Browse files Browse the repository at this point in the history
  • Loading branch information
cpgo committed Oct 7, 2015
2 parents bac19cb + fab56d0 commit 1309f46
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ BootForms lets you create a label and form control and wrap it all in a form gro
BootForm::text('Field Label', 'field_name')
```

## Model Binding
```php
BootForm::open()->action( route('users.update', $user) )->put()
//Don´t forget to change to PUT method
BootForm::bind($user)
BootForm::close()
```

### Customizing Elements

If you need to customize your form elements in any way (such as adding a default value or placeholder to a text element), simply chain the calls you need to make and they will fall through to the underlying form element.
Expand Down

0 comments on commit 1309f46

Please sign in to comment.