Support the ongoing development of Laravel.io →
posted 9 years ago
Forms
Last updated 1 year ago.
0

Hi there,

Does removing the class from the checkbox do the trick? So the line would read:

{{Form::checkbox('remember-me',1,null)}}

With kind regards,

Mark

Last updated 1 year ago.
0

I think you are using the wrong template for checkbox.

<div class="form-group">
    <div class="checkbox">
            {{Form::checkbox('remember-me',1,null,['class'=>'checkbox'])}}
    </div>
</div>

<div class="checkbox">
    <label>
      <input type="checkbox"> Remember Me
    </label>
  </div>

should do the trick.

Last updated 1 year ago.
0

This is how the Remember Me bit of the login form in my app is written:

		<div class="form-group">
			{{ Form::label('rememberme', 'Remember me') }}
		 	{{Form::checkbox('rememberme', null)}}
		</div>

Hope that's of some help.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

tofah tofah Joined 20 Nov 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.