/** * @param $name * @param $labelText * @param int $value * @param null $checked * @param array $options * @return string */ public function wrappedCheckbox($name, $labelText, $value = 1, $checked = null, $options = []) { return $this->wrapWithLabel($name, $labelText, $options, parent::checkable('checkbox', $name, $value, $checked, $this->appendErrors($name, $options))); }
protected function checkable($type, $name, $value, $checked, $options) { $options = $this->converter->convert(Helper::getFormAttribute($name)) + $options; return parent::checkable($type, $name, $value, $checked, $options); }