How to get the in laravel’s links

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

My link looks like this

{{ HTML::linkAction('admin<a href="https://getridbug.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b8f5ddd6cdcbfbd7d6cccad7d4d4ddcaf8dddcd1cc">[email protected]</a>', '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>

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

This should work

{{ HTML::decode(HTML::linkAction('admin<a href="https://getridbug.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="68250d061d1b2b07061c1a0704040d1a280d0c011c">[email protected]</a>', 'Edit', array(), array('class' => 'btn btn-primary', 'role' => 'button'))) }}

Source 1


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x