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

Commit

Permalink
Clean up notes on model binding
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Oct 24, 2015
1 parent c3a0057 commit 1a4bff9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,14 @@ BootForm::text('Field Label', 'field_name')
```

## Model Binding

BootForms makes it easy to bind an object to a form to provide default values. Read more about it [here](https://github.com/adamwathan/form#model-binding).

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

BootForm::bind($user)

BootForm::close()
```

Expand Down

0 comments on commit 1a4bff9

Please sign in to comment.