jeudi 23 avril 2020

Display fa icon as a button text in laravel form [duplicate]

@can('user-delete')
    {!! Form::open(['method' => 'DELETE','route' => ['users.destroy', $user->id],'style'=>'display:inline']) !!}
    {!! Form::submit('Delete', ['class' => 'btn btn-default']) !!}
    {!! Form::close() !!}
@endcan 

I need to display fa icon instead of DELETE text in the button,

<i class="fas fa-trash-alt"></i>

How can I display this fa icon in that button.

I'm using laravel and bootstrap 4.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire