src/Generators/HtmlGenerator.php
public function makeCheckbox($config, $selected, $custom)
    {
        if (str_contains($config['class'], 'form-control')) {
            if (str_contains($config['class'], 'form-check-inline')) {
                $config['class'] = str_replace('form-control', '', $config['class']);
            } else {
                $config['class'] = str_replace('form-control', 'form-check-input', $config['class']);
            }
        }

        return '<input '.$this->processCustom($custom).' id="'.$this->getId($config).'" '.$selected.' type="checkbox" name="'.$config['name'].'" class="'. $config['class'] .'">';
    }
public function makeCheckbox($config, $selected, $custom)
    {
        if (str_contains($config['class'], 'form-control')) {
            if (str_contains($config['class'], 'form-check-inline')) {
                $config['class'] = str_replace('form-control', '', $config['class']);
            } else {
                $config['class'] = str_replace('form-control', 'form-check-input', $config['class']);
            }
        }

        return '<input '.$this->processCustom($custom).' id="'.$this->getId($config).'" '.$selected.' type="checkbox" name="'.$config['name'].'" class="'. $config['class'] .'">';
    }
public function makeCheckbox ( $ config , $ selected , $ custom ) { if ( str_contains ( $ config [ 'class' ] , 'form-control' ) ) { if ( str_contains ( $ config [ 'class' ] , 'form-check-inline' ) ) { $ config [ 'class' ] = str_replace ( 'form-control' , '' , $ config [ 'class' ] ) ; } else { $ config [ 'class' ] = str_replace ( 'form-control' , 'form-check-input' , $ config [ 'class' ] ) ; } } return '<input ' . $ this -> processCustom ( $ custom ) . ' id="' . $ this -> getId ( $ config ) . '" ' . $ selected . ' type="checkbox" name="' . $ config [ 'name' ] . '" class="' . $ config [ 'class' ] . '">' ; }
Make a checkbox.

@param array  $config
@param string $selected
@param mixed $custom

@return string
Make a checkbox .