Hi, my name is David Carr and I'm a PHP Developer.
Help support the blog so that I can continue creating new content!
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>
or
<x-form.checkbox name='terms' value='1'>{{ $terms }}</x-form.checkbox>