Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Sending e-mails and settings on Team.

Joao Patricio18c69d731ce7
diff --git a/app/Http/Livewire/Notifications/DiscordSettings.php b/app/Http/Livewire/Notifications/DiscordSettings.php
index fe689d4b20..239d080a66 100644
--- a/app/Http/Livewire/Notifications/DiscordSettings.php
+++ b/app/Http/Livewire/Notifications/DiscordSettings.php
@@ -32,7 +32,7 @@ class DiscordSettings extends Component
session(['currentTeam' => $this->model]);
}
}
- public function sentTestMessage()
+ public function sendTestNotification()
{
Notification::send($this->model, new DemoNotification);
}
diff --git a/app/Http/Livewire/Notifications/EmailSettings.php b/app/Http/Livewire/Notifications/EmailSettings.php
index 4fe67c24ed..26f9559255 100644
--- a/app/Http/Livewire/Notifications/EmailSettings.php
+++ b/app/Http/Livewire/Notifications/EmailSettings.php
@@ -4,6 +4,8 @@ namespace App\Http\Livewire\Notifications;
use App\Models\Server;
use App\Models\Team;
+use App\Notifications\DemoNotification;
+use Illuminate\Support\Facades\Notification;
use Livewire\Component;
class EmailSettings extends Component
@@ -48,7 +50,7 @@ class EmailSettings extends Component
}
public function sendTestNotification()
{
-
+ Notification::send($this->model, new DemoNotification);
}
public function render()
{
diff --git a/resources/views/livewire/notifications/discord-settings.blade.php b/resources/views/livewire/notifications/discord-settings.blade.php
index 730293f2d9..9a1980d6f7 100644
--- a/resources/views/livewire/notifications/discord-settings.blade.php
+++ b/resources/views/livewire/notifications/discord-settings.blade.php
@@ -14,7 +14,7 @@
</x-inputs.button>
<x-inputs.button
class="mt-4 btn btn-xs no-animation normal-case text-white btn-primary"
- wire:click="sentTestMessage"
+ wire:click="sendTestNotification"
>
Send test message
</x-inputs.button>