Files

29 lines
642 B
PHP
Raw Permalink Normal View History

2018-09-15 19:43:22 -04:00
<?php
2024-03-12 22:39:16 -04:00
namespace App\Notifications;
2018-09-15 19:43:22 -04:00
2024-03-12 22:39:16 -04:00
use App\Models\User;
2018-09-15 19:59:07 -04:00
use Illuminate\Notifications\Messages\MailMessage;
2025-09-24 13:34:19 +02:00
use Illuminate\Notifications\Notification;
2018-09-15 19:43:22 -04:00
class MailTested extends Notification
{
public function __construct(private User $user) {}
2018-09-15 19:43:22 -04:00
/**
* @return string[]
*/
public function via(): array
2018-09-15 19:43:22 -04:00
{
return ['mail'];
}
public function toMail(): MailMessage
2018-09-15 19:43:22 -04:00
{
2021-01-23 12:33:34 -08:00
return (new MailMessage())
2024-03-12 22:39:16 -04:00
->subject('Panel Test Message')
2025-10-01 10:31:01 +02:00
->greeting('Hello ' . $this->user->username . '!')
2024-03-12 22:39:16 -04:00
->line('This is a test of the Panel mail system. You\'re good to go!');
2018-09-15 19:43:22 -04:00
}
}