mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-06 20:50:01 +00:00
41 lines
844 B
PHP
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 [
|
|
//
|
|
];
|
|
}
|
|
}
|