src/Services/NestableService.php
public function selected($values)
    {
        if (is_array($values) || $values instanceof Closure) {
            $this->selected = $values;
        }
        else if (func_num_args() > 1) {
            $this->selected = func_get_args();
        } else {
            $this->selected = [$values];
        }

        return $this;
    }
public function selected($values)
    {
        if (is_array($values) || $values instanceof Closure) {
            $this->selected = $values;
        }
        else if (func_num_args() > 1) {
            $this->selected = func_get_args();
        } else {
            $this->selected = [$values];
        }

        return $this;
    }
public function selected ( $ values ) { if ( is_array ( $ values ) || $ values instanceof Closure ) { $ this -> selected = $ values ; } else if ( func_num_args ( ) > 1 ) { $ this -> selected = func_get_args ( ) ; } else { $ this -> selected = [ $ values ] ; } return $ this ; }
Save the will select values.

@param int|array $values

@return object (instance)
Save the will select values .