如何获得< i>在laravel的链接中 [英] How to get the <i> in laravel's links

查看:67
本文介绍了如何获得< i>在laravel的链接中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用laravel的链接.

I'm trying to use the with laravel's links.

我的链接看起来像这样

{{ HTML::linkAction('admin\MenusController@edit', 'Edit', array(), array('class' => 'btn btn-primary', 'role' => 'button')) }}

,我希望将其与图标一同显示.

and I would like to have the icon with it.

类似这样的东西

<button class="btn btn-primary"><i class="fa fa-edit "></i> Edit</button>

推荐答案

这应该有效

{{ HTML::decode(HTML::linkAction('admin\MenusController@edit', 'Edit', array(), array('class' => 'btn btn-primary', 'role' => 'button'))) }}

源1

这篇关于如何获得&lt; i&gt;在laravel的链接中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆