55 lines
1.3 KiB
PHP
55 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Mail\Mailables\Content;
|
|
use Illuminate\Mail\Mailables\Envelope;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class VerificationEmail extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public $token;
|
|
|
|
public function __construct($token)
|
|
{
|
|
$this->token = $token;
|
|
}
|
|
|
|
public function build()
|
|
{
|
|
return $this->view('vendor.mail.html.custom-layout') // Menggunakan layout kustom
|
|
->with([
|
|
'greeting' => 'Hello!',
|
|
'introLines' => ['Here is your verification link!'],
|
|
'actionText' => 'Verify Now',
|
|
'actionUrl' => url('/verify-email'),
|
|
'outroLines' => ['If you did not request this, please ignore this email.'],
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Get the message content definition.
|
|
*/
|
|
public function content(): Content
|
|
{
|
|
return new Content(
|
|
view: 'view.name',
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Get the attachments for the message.
|
|
*
|
|
* @return array<int, \Illuminate\Mail\Mailables\Attachment>
|
|
*/
|
|
public function attachments(): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|