Is it possible to put a bootstrap glyphicon inside of a {{ Form::submit(' ')}} - Laravel

Viewed 20558

I want to change this:

{{ Form::submit('Delete this User', array('class' => 'btn btn-warning')) }}

to something like this:

{{ Form::submit('<i class="glyphicon glyphicon-delete"></i>', array('class' => '')) }}

I know that the second option isn't correct, anyone knows how to write it in a correct way?

4 Answers

I used Html::linkRoutes to create a button and cannot implement the methods you guys mentioned before... Any one have any guesses? Heres my code:

<div class="col-md-12">
          {{ Html::linkRoute('posts.index', '<< Back to blog', [], ['class' => 'btn2 btn2-default']) }}
</div>
Related