How to get the <i> in laravel's links

﹥>﹥吖頭↗ 提交于 2019-12-11 17:01:57

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!