protected function checkable($type, $name, $value, $checked, $attributes) { if ($checked) { $attributes['checked'] = 'checked'; } $attributes['id'] = $this->id($name, $attributes); return $this->input($type, $name, $value, $attributes); }