Modal/Modal.php
public function addButton(array $options, $prepend = false)
    {
        $resolver = static::getButtonOptionsResolver();
        $options = $resolver->resolve($options);
        if ($prepend) {
            array_unshift($this->buttons, $options);
        } else {
            array_push($this->buttons, $options);
        }
        return $this;
    }
public function addButton(array $options, $prepend = false)
    {
        $resolver = static::getButtonOptionsResolver();
        $options = $resolver->resolve($options);
        if ($prepend) {
            array_unshift($this->buttons, $options);
        } else {
            array_push($this->buttons, $options);
        }
        return $this;
    }
Adds the button.

@param array $options
@param bool $prepend
@return Modal