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!
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'] ) }}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With