src/Concerns/InteractsWithElements.php
public function check($field, $value = null)
    {
        $element = $this->resolver->resolveForChecking($field, $value);

        if (! $element->isSelected()) {
            $element->click();
        }

        return $this;
    }
public function check($field, $value = null)
    {
        $element = $this->resolver->resolveForChecking($field, $value);

        if (! $element->isSelected()) {
            $element->click();
        }

        return $this;
    }
public function check ( $ field , $ value = null ) { $ element = $ this -> resolver -> resolveForChecking ( $ field , $ value ) ; if ( ! $ element -> isSelected ( ) ) { $ element -> click ( ) ; } return $ this ; }
Check the given checkbox.

@param  string  $field
@param  string  $value
@return $this
Check the given checkbox .