checkable() protected method

Create a checkable input field.
protected checkable ( string $type, string $name, mixed $value, boolean $checked, array $options ) : Illuminate\Support\HtmlString
$type string
$name string
$value mixed
$checked boolean
$options array
return Illuminate\Support\HtmlString
コード例 #1
0
 /**
  * @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)));
 }
コード例 #2
0
 protected function checkable($type, $name, $value, $checked, $options)
 {
     $options = $this->converter->convert(Helper::getFormAttribute($name)) + $options;
     return parent::checkable($type, $name, $value, $checked, $options);
 }