Deploy Ladill Hosting / deploy (push) Failing after 17s
Shared web hosting extracted from the platform monolith, with CI deploy to /var/www/ladill-hosting matching Bird/Domains/Email. Co-authored-by: Cursor <cursoragent@cursor.com>
46 lines
1.2 KiB
PHP
46 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
use App\Models\Domain;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Notifications\Notification;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
class DomainVerifiedNotification extends Notification implements ShouldQueue
|
|
{
|
|
use Queueable;
|
|
|
|
public function __construct(
|
|
private readonly Domain $domain
|
|
) {
|
|
}
|
|
|
|
public function via($notifiable): array
|
|
{
|
|
return ['mail', 'database'];
|
|
}
|
|
|
|
public function toMail($notifiable): MailMessage
|
|
{
|
|
return (new MailMessage())
|
|
->subject("Domain Verified: {$this->domain->host} is now active!")
|
|
->view('mail.notifications.domain-verified', [
|
|
'domain' => $this->domain,
|
|
'manageUrl' => route('user.domains.show', $this->domain),
|
|
'emailUrl' => route('user.mailboxes.index'),
|
|
]);
|
|
}
|
|
|
|
public function toArray($notifiable): array
|
|
{
|
|
return [
|
|
'title' => 'Domain Verified',
|
|
'message' => "Your domain {$this->domain->host} has been verified and is now active.",
|
|
'icon' => 'success',
|
|
'url' => route('user.domains.show', $this->domain),
|
|
];
|
|
}
|
|
}
|