Use link_to helper:
{{ link_to('password/reset/hfhfjhghsasdgsd', 'Reset Password', array('style' => 'color:blue')) }}
Or
{{ HTML::link('password/reset/hfhfjhghsasdgsd', 'Reset Password', array('style' => 'color:blue')) }}
题
I have the following code in email.blade.php
{{ URL::to('password/reset' , array($token)) }}
Which generates
<a href="password/reset/hfhfjhghsasdgsd">password/reset/hfhfjhghsasdgsd</a>
How could I make it look like this:
<a href="password/reset/hfhfjhghsasdgsd" style="color:blue">Reset Password</a>
Please help
Thanks
解决方案
Use link_to helper:
{{ link_to('password/reset/hfhfjhghsasdgsd', 'Reset Password', array('style' => 'color:blue')) }}
Or
{{ HTML::link('password/reset/hfhfjhghsasdgsd', 'Reset Password', array('style' => 'color:blue')) }}