Files
ProxyPanel/app/Notifications/Verification.php
2021-01-18 02:24:41 -05:00

40 lines
738 B
PHP

<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class Verification extends Notification
{
use Queueable;
private $code;
public function __construct($code)
{
$this->code = $code;
}
public function via($notifiable)
{
return ['mail'];
}
public function toMail($notifiable)
{
return (new MailMessage)
->subject(trans('notification.verification_account'))
->line(trans('notification.verification'))
->line($this->code);
}
public function toArray($notifiable)
{
return [
//
];
}
}