Add icon to Laravelcollective submit button

I am trying to add a trash can icon to send, and I have tried this:

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

but the icon will not be displayed. How to solve this? thanks in advance!

+6
source share
1 answer

Try using the Form :: button instead of the form :: submit:

 {{ Form::button('<i class="fa fa-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-warning btn-sm'] ) }} 
+15
source

Source: https://habr.com/ru/post/1013268/


All Articles