问题
I'm trying to use the with laravel's links.
My link looks like this
{{ HTML::linkAction('admin\MenusController@edit', 'Edit', array(), array('class' => 'btn btn-primary', 'role' => 'button')) }}
and I would like to have the icon with it.
Something like this
<button class="btn btn-primary"><i class="fa fa-edit "></i> Edit</button>
回答1:
This should work
{{ HTML::decode(HTML::linkAction('admin\MenusController@edit', 'Edit', array(), array('class' => 'btn btn-primary', 'role' => 'button'))) }}
Source 1
来源:https://stackoverflow.com/questions/26243840/how-to-get-the-i-in-laravels-links