2018-10-29 04:16:17 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Mail;
|
|
|
|
|
|
|
|
use App\Models\User;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
|
|
|
|
class VerifyUser extends Mailable implements ShouldQueue
|
|
|
|
{
|
|
|
|
use Queueable, SerializesModels;
|
|
|
|
|
|
|
|
public $user;
|
|
|
|
/**
|
|
|
|
* Create a new message instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function __construct(User $user)
|
|
|
|
{
|
|
|
|
$this->user = $user;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Build the message.
|
|
|
|
*
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function build()
|
|
|
|
{
|
|
|
|
|
|
|
|
return $this->from('turbo124@gmail.com') //todo
|
2019-01-25 11:47:23 +01:00
|
|
|
->subject(ctrans('texts.confirmation_subject'))
|
2018-10-29 04:16:17 +01:00
|
|
|
->markdown('email.auth.verify', ['user' => $this->user])
|
|
|
|
->text('email.auth.verify_text');
|
|
|
|
}
|
|
|
|
}
|