src/FormBuilder.php
public function button(?string $value = null, array $options = [], bool $escape = true): Htmlable
    {
        if (! \array_key_exists('type', $options)) {
            $options['type'] = 'button';
        }

        if ($escape) {
            $value = $this->html->entities($value);
        }

        return $this->toHtmlString('<button'.$this->html->attributes($options).'>'.$value.'</button>');
    }
public function button(?string $value = null, array $options = [], bool $escape = true): Htmlable
    {
        if (! \array_key_exists('type', $options)) {
            $options['type'] = 'button';
        }

        if ($escape) {
            $value = $this->html->entities($value);
        }

        return $this->toHtmlString('<button'.$this->html->attributes($options).'>'.$value.'</button>');
    }
Create a button element.

@param  string|null  $value
@param  array  $options
@param  bool  $escape

@return \Illuminate\Contracts\Support\Htmlable