2014-05-13 91 views
0

我在email.blade.php下面的代碼Laravel添加樣式的URL?

{{ URL::to('password/reset' , array($token)) }} 

產生

<a href="password/reset/hfhfjhghsasdgsd">password/reset/hfhfjhghsasdgsd</a> 

我怎麼可能使它看起來像這樣:

<a href="password/reset/hfhfjhghsasdgsd" style="color:blue">Reset Password</a> 

請幫

謝謝

+0

聯樣式可以給你的噩夢。樣式表是爲purpoe創建的。 – itachi

+0

以及這是電子郵件模板:) – user3150060

回答

2

使用的link_to助手:

{{ link_to('password/reset/hfhfjhghsasdgsd', 'Reset Password', array('style' => 'color:blue')) }} 

或者

{{ HTML::link('password/reset/hfhfjhghsasdgsd', 'Reset Password', array('style' => 'color:blue')) }} 
+0

非常感謝您的幫助 – user3150060