I want to change this:
{{ Form::submit(\'Delete this User\', array(\'class\' => \'btn btn-warning\')) }}
to something like this:
<
Use a of type submit, which adds more flexibility then a submit input:
{{Form::button('', array('type' => 'submit', 'class' => ''))}}
To make it clear, this is the class method:
public function button($value = null, $options = array())
{
if ( ! array_key_exists('type', $options) )
{
$options['type'] = 'button';
}
return '';
}
As you can see, $value
holds anything you put inside the tag, so placing the icon there should work - I use this with Fontawesome icons and it works fine, I personally tend to use those instead of Glyphicon but the principle remains the same.
By using Form::submit()
, instead, you create an which cannot accept html as content of the
value
attribute, that's why your solution won't work.