$attributes = array( 'name' => 'checkboxname', 'value' => 1, 'checked' => 'checked' ); $checkbox = \Form::checkbox($attributes);
$attributes = array( 'name' => 'checkboxname', 'value' => 1, ); if($dbvalue === 1) { $attributes['checked'] = 'checked'; } $checkbox = \Form::checkbox($attributes);
It looks like you're new here. If you want to get involved, click one of these buttons!