Hi, my name is David Carr and I'm a PHP Developer.

Blog Archives Categories Authors About Me Open Source Books Contact Me

Sponsor Me

Help support the blog so that I can continue creating new content!

My Latest Book

Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more


A checkbox can also be defined, set the name and value

<x-form.checkbox name='terms' value='1'></x-form.checkbox>

Check the checkbox by passing its value, as long it's a match the checkbox will be checked.

<x-form.checkbox name='terms' value='1'>1</x-form.checkbox>


<x-form.checkbox name='terms' value='1'>{{ $terms }}</x-form.checkbox>
Copyright © 2009 - 2022 David Carr. All code MIT license. All rights reserved.