blessing-skin-server/app/Mail/EmailVerification.php

39 lines
752 B
PHP
Raw Normal View History

2018-08-17 12:32:44 +08:00
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class EmailVerification extends Mailable
{
use Queueable, SerializesModels;
public $url;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($url)
{
$this->url = $url;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$site_name = option_localized('site_name');
return $this->from(config('mail.username'), $site_name)
->subject(trans('user.verification.mail.title', ['sitename' => $site_name]))
->view('mails.email-verification');
}
}