App\Services\Html\FormBuilder::openButton PHP Method

openButton() public method

public openButton ( array $formOptions = [], array $buttonOptions = [] ) : string
$formOptions array
$buttonOptions array
return string
    public function openButton(array $formOptions = [], array $buttonOptions = []) : string
    {
        if (strtolower($formOptions['method'] ?? '') === 'delete') {
            $formOptions['data-confirm'] = 'true';
        }
        return $this->open($formOptions) . substr(el('button', $buttonOptions, ''), 0, -strlen('</button>'));
    }