Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add icon to Laravelcollective submit button

I'm trying to add a trash icon to submit button and I tried this :

{!! Form::submit('', ['class' => 'btn btn-warning btn-sm fa fa-trash']) !!}

but the icon won't show. How to solve this ? thanks in advance!

like image 869
Ariando Miller Avatar asked Dec 18 '16 18:12

Ariando Miller


1 Answers

Try to use Form::button instead of Form::submit:

{{ Form::button('<i class="fa fa-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-warning btn-sm'] )  }}
like image 99
misterdebug Avatar answered Oct 13 '22 00:10

misterdebug