kristijanhusak / laravel-form-builder

Laravel Form builder for version 5+!
https://packagist.org/packages/kris/laravel-form-builder
MIT License
1.69k stars 295 forks source link

Rendering checkbox and it's label separately #559

Open kennaar opened 5 years ago

kennaar commented 5 years ago

I'm trying to render a checkbox and it's label separately using the form_label and form_widget helper methods. However the label is not rendering because of the way the checkbox template is doing it's checks on the passed in booleans.

How should this be resolved? Create a custom template? If possible I would rather not.

Thanks in advance.

rudiedirkx commented 2 years ago

However the label is not rendering because of the way the checkbox template is doing it's checks on the passed in booleans.

What does that mean? Is it a bug in our template? Both functions should follow the entire render procedure, only print a partial, so it should work. Why doesn't it? PRs very welcome.