This commit is contained in:
Andras Bacsai
2023-06-14 11:54:00 +02:00
parent 767824f2f7
commit 8f0cd69cd3
7 changed files with 34 additions and 40 deletions

View File

@@ -11,7 +11,7 @@ class EmailChannel
public function send(SendsEmail $notifiable, Notification $notification): void
{
$this->bootConfigs($notifiable);
$is_test_notification = $notification instanceof \App\Notifications\TestNotification;
$is_test_notification = $notification instanceof \App\Notifications\Notifications\TestNotification;
if ($is_test_notification) {
$bcc = $notifiable->routeNotificationForEmail('smtp_test_recipients');

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Notifications;
namespace App\Notifications\Notifications;
use App\Notifications\Channels\EmailChannel;
use App\Notifications\Channels\DiscordChannel;
@@ -29,6 +29,6 @@ class TestNotification extends Notification implements ShouldQueue
public function toDiscord(): string
{
return 'You have successfully received a test Discord notification from Coolify. 🥳 [Go to your dashboard](' . url('/') . ')';
return 'You have successfully received a test Discord notification from Coolify. 🥳 [Go to your dashboard](' . base_url() . ')';
}
}