vito/app/Notifications/SourceControlDisconnected.php
Saeed Vaziry e031bafba5
upgrade to Laravel 11 and schema squash (#245)
* upgrade to Laravel 11 and schema squash

* code style and npm audit fix

* fix #209
2024-06-24 23:03:02 +02:00

26 lines
674 B
PHP

<?php
namespace App\Notifications;
use App\Models\SourceControl;
use Illuminate\Notifications\Messages\MailMessage;
class SourceControlDisconnected extends AbstractNotification
{
public function __construct(protected SourceControl $sourceControl) {}
public function rawText(): string
{
return __('Source control [:sourceControl] has been disconnected from Vito', [
'sourceControl' => $this->sourceControl->profile,
]);
}
public function toEmail(object $notifiable): MailMessage
{
return (new MailMessage)
->subject(__('Source control disconnected!'))
->line($this->rawText());
}
}