php - Laravel Blade create Button with child -
i want convert html button laravel form button. dont know how.
<button type="submit" class="btn btn-block btn-primary"> <i class="fa fa-plus"></i> benutzer hinzufügen </button>
in blade template looks this:
{!! form::submit('benutzer hinzufügen', array('class' => 'btn btn-block btn-primary')) !!}
is there option this?
{!! form::submit('benutzer hinzufügen', array('class' => 'btn btn-block btn-primary', 'child' => '<i class="fa fa-plus"></i>')) !!}
you can this:
{!! form::button('<i class="fa fa-plus"></i> benutzer hinzufügen', array('class' => 'btn btn-block btn-primary', 'type' => 'submit')) !!}
it work want!
Comments
Post a Comment