jeudi 23 avril 2020

Display fa icon as a button text in laravel form

@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.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2xUCShg
via IFTTT

Aucun commentaire:

Enregistrer un commentaire