adamwathan / bootforms

Rapid form generation with Bootstrap 3 and Laravel.
MIT License
417 stars 103 forks source link

Ability to remove label #130

Closed sarfraznawaz2005 closed 7 years ago

sarfraznawaz2005 commented 7 years ago

I think there should be a method to remove label completely instead of having it there with sr-only with hideLabel. Neither I can use this nor this without altering core of this package.

I know it's good idea to just hide label with sr-only but let it be responsibility of the user, package must not enforce it. It's good idea we could do something like this similar to collective/html package:

{!! BootForm::checkbox('Active', 'is_active', 'is_active', true)->withoutLabel() !!}
{!! BootForm::label('is_active') !!}

Thanks

adamwathan commented 7 years ago

Happy to look at a PR for withoutLabel if you want to put one together 👍

adamwathan commented 7 years ago

No plans to add this, just write the markup by hand if you'd like different markup than the package generates.