mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-07 00:42:34 +00:00
init
This commit is contained in:
26
app/Notifications/SSLExpirationAlert.php
Normal file
26
app/Notifications/SSLExpirationAlert.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Notifications;
|
||||
|
||||
use App\Contracts\Notification;
|
||||
use App\Models\Ssl;
|
||||
|
||||
class SSLExpirationAlert implements Notification
|
||||
{
|
||||
protected Ssl $ssl;
|
||||
|
||||
public function __construct(Ssl $ssl)
|
||||
{
|
||||
$this->ssl = $ssl;
|
||||
}
|
||||
|
||||
public function subject(): string
|
||||
{
|
||||
return __('SSL expiring soon!');
|
||||
}
|
||||
|
||||
public function message(bool $mail = false): string
|
||||
{
|
||||
return $this->ssl->site->domain."'s ".__('SSL is expiring on').' '.$this->ssl->expires_at->format('Y-m-d');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user