Files
ProxyPanel/app/Notifications/Verification.php
2021-01-29 00:11:14 -05:00

41 lines
844 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)
->line(trans('notification.verification_limit', ['minutes' => config('tasks.close.verify')]));
}
public function toArray($notifiable)
{
return [
//
];
}
}