<?php echo Form::hidden('publish', '0'); ?> <?php echo Form::checkbox('publish', Input::post( 'publish', isset($post) ? $post->publish : '0'), array('class' => 'span6', 'checked' => (isset($post) && $post->publish) ? 'checked' : 'false') ); ?>
After changing Form::input to Form::checkbox I got error on saving record, boolean field publish cannot be null(if checkbox not checked)
When a checkbox isn't checked it won't show up in the $_POST array at all (not even as a key with empty value), thus Input::post('publish') will return null.Why migration did boolean field as tinyint and NULL by default?
It looks like you're new here. If you want to get involved, click one of these buttons!