I want to create a resourceful link with Laravel.
Normally I just use the {{ link_to_route('Yadayadayada.route', 'LinkName', $params }}
But in this case I am using a Template with this layout:
<a href="index.html">
<i class="icon-dashboard"></i>
<span class="menu-text"> Dashboard </span>
</a>
That means that inside the anchor tag, is as well a <i>
-Tag and a <span>
-Tag.
Is it possible to use the {{ link_to_route }}
-Method, without having to change the layout of the Template?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…