2018-09-14 20:00:28 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Mail;
|
|
|
|
|
|
|
|
use \App\User;
|
2021-05-20 23:37:35 +00:00
|
|
|
use \Lang;
|
2018-09-14 20:00:28 +00:00
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
class Welcome extends Mailable
|
|
|
|
{
|
|
|
|
public $user; //Keep this public to be accessed directly from the view.
|
|
|
|
use Queueable, SerializesModels;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new message instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function __construct(User $user)
|
|
|
|
{
|
|
|
|
$this->user = $user;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Build the message.
|
|
|
|
*
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function build()
|
|
|
|
{
|
2021-02-17 23:02:27 +00:00
|
|
|
return $this->subject(Lang::get('Welcome'))->markdown('emails.welcome');
|
2018-09-14 20:00:28 +00:00
|
|
|
}
|
|
|
|
}
|