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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -