Files
ProxyPanel/app/Notifications/Verification.php
BrettonYe d9ff6ad6ee Improve System Blade
- Removed Task config, add those settings to System blade.
- Improve the font-end of system setting blade.
- Improve Payments files to be more  "Modularize"
2025-06-09 23:54:12 +08:00

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 [
//
];
}
}