public function checked($checked = [])
    {
        if ($checked instanceof Arrayable) {
            $checked = $checked->toArray();
        }

        // input radio checked should be unique
        $this->checked = is_array($checked) ? (array) end($checked) : (array) $checked;

        return $this;
    }
public function checked($checked = [])
    {
        if ($checked instanceof Arrayable) {
            $checked = $checked->toArray();
        }

        // input radio checked should be unique
        $this->checked = is_array($checked) ? (array) end($checked) : (array) $checked;

        return $this;
    }
public function checked ( $ checked = [ ] ) { if ( $ checked instanceof Arrayable ) { $ checked = $ checked -> toArray ( ) ; } // input radio checked should be unique $ this -> checked = is_array ( $ checked ) ? ( array ) end ( $ checked ) : ( array ) $ checked ; return $ this ; }
Set checked.

@param array|callable|string $checked

@return $this
Set checked .