Files
docker-rconfig/app/Notifications/MailPurgeOperationNotification.php
2024-10-19 18:23:55 +00:00

46 lines
1.0 KiB
PHP

<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class MailPurgeOperationNotification extends Notification
{
use Queueable;
protected $username;
protected $msg;
public function __construct($msg, $username)
{
$this->username = $username;
$this->msg = $msg;
}
public function via($notifiable)
{
return ['mail'];
}
public function toMail($notifiable)
{
return (new MailMessage)
->subject('rConfig Data Purge Notification')
->greeting('rConfig Data Purge Notification!')
->line('Hello '.$this->username.',')
->line($this->msg.'.')
->action('View logs', url('/settings-logs'))
->line('Thank you for using rConfig!');
}
public function toArray($notifiable)
{
return [
//
];
}
}