mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-11 23:19:05 +00:00
- Removed Task config, add those settings to System blade. - Improve the font-end of system setting blade. - Improve Payments files to be more "Modularize"
41 lines
915 B
PHP
41 lines
915 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 string $code;
|
|
|
|
public function __construct(string $code)
|
|
{
|
|
$this->code = $code;
|
|
}
|
|
|
|
public function via($notifiable): array
|
|
{
|
|
return ['mail'];
|
|
}
|
|
|
|
public function toMail($notifiable): MailMessage
|
|
{
|
|
return (new MailMessage)
|
|
->subject(trans('notification.verification_account'))
|
|
->line(trans('notification.verification'))
|
|
->line($this->code)
|
|
->line(trans('notification.verification_limit', ['minutes' => (time() - strtotime(sysConfig('tasks_close.verify'))) / 60]));
|
|
}
|
|
|
|
public function toArray($notifiable): array
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
}
|