marvinlabs / laravel-html-bootstrap-4

Bootstrap 4 fluent HTML builder
MIT License
42 stars 15 forks source link

Data bind #17

Closed nesymno closed 6 years ago

nesymno commented 6 years ago

Will be cool to have an opportunity to bind model data to form, for update record.

vpratfr commented 6 years ago

Is not that already available?

See: https://github.com/marvinlabs/laravel-html-bootstrap-4/blob/master/src/Bootstrap/Traits/BuildsForms.php#L42

Pass a 'model' element to the options array.

And name the inputs similarly to the model attribute.

nesymno commented 6 years ago

Yes, I found it. Thanks! But it would be great to add this to documentation, for future users.

vpratfr commented 6 years ago

You can make a pull request for documentation too. That would be very much appreciated. (PR always on the develop branch please).

Also note that I have not yet tested model binding extensively. Do not hesitate to report any strange behaviour. Will fix as quickly as possible.

vpratfr commented 6 years ago

A proper doc folder with some MD files in there would make for a decent wiki/documentation if you wish to start with it.