Im creating a mail with a button to take you to a login screen.
The mail is sent the button is rendered, but the href
is missing.
I have checked the indentation and it fine, so im unsure why its rendering that way.
Mail blade
@component('mail::message')
# Introduction
Not him old music think his found enjoy merry. Listening acuteness dependent at or an.
Apartments thoroughly unsatiable terminated sex how themselves. She are ten hours wrong walls stand early.
Domestic perceive on an ladyship extended received do.
Why jennings our whatever his learning gay perceive. Is against no he without subject.
Bed connection unreserved preference partiality not unaffected.
Years merit trees so think in hoped we as.
SOME DATA:
@component('mail::button', ['url' => $url])
Goto questionnaires
@endcomponent
Thanks,<br>
Some Hospital team.
@endcomponent
MAIL CLASS
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Http\Request;
class QuestionnaireMail extends Mailable
{
use Queueable, SerializesModels;
public $someData;
public $url;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct()
{
$this->someData = "Some Data";
$this->url = 'localhost:8077/login_patient';
}
/**
* Build the message.
*
* @param Request $request
* @return $this
*/
public function build(Request $request)
{
return $this->markdown('emails.answered' );
}
}
RENDERED BUTTON
<tr>
<td style="font-family:Avenir,Helvetica,sans-serif;box-sizing:border-box">
<a style="font-family:Avenir,Helvetica,sans-serif;box-sizing:border-box;border-radius:3px;color:#fff;display:inline-block;text-decoration:none;background-color:#3097d1;border-top:10px solid #3097d1;border-right:18px solid #3097d1;border-bottom:10px solid #3097d1;border-left:18px solid #3097d1">Goto questionnaires</a>
</td>
</tr>
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2BCdW04
via IFTTT
Aucun commentaire:
Enregistrer un commentaire