src/Concerns/Checker.php
protected function checkable(string $type, string $name, $value, ?bool $checked, array $options): Htmlable
    {
        $this->type = $type;

        $checked = $this->getCheckedState($type, $name, $value, $checked);

        $checked && $options['checked'] = 'checked';

        return $this->input($type, $name, $value, $options);
    }
protected function checkable(string $type, string $name, $value, ?bool $checked, array $options): Htmlable
    {
        $this->type = $type;

        $checked = $this->getCheckedState($type, $name, $value, $checked);

        $checked && $options['checked'] = 'checked';

        return $this->input($type, $name, $value, $options);
    }
Create a checkable input field.

@param  string  $type
@param  string  $name
@param  mixed   $value
@param  bool|null  $checked
@param  array   $options

@return \Illuminate\Contracts\Support\Htmlable