0

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

2
  • inline styling can give you nightmare. stylesheets are created for a purpoe. Commented May 13, 2014 at 5:23
  • well this is for email template :) Commented May 13, 2014 at 17:22

1 Answer 1

3

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')) }}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.