2025-10-01 10:31:01 +02:00

29 lines
642 B
PHP

<?php
namespace App\Notifications;
use App\Models\User;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class MailTested extends Notification
{
public function __construct(private User $user) {}
/**
* @return string[]
*/
public function via(): array
{
return ['mail'];
}
public function toMail(): MailMessage
{
return (new MailMessage())
->subject('Panel Test Message')
->greeting('Hello ' . $this->user->username . '!')
->line('This is a test of the Panel mail system. You\'re good to go!');
}
}