Sending e-mails and settings on Team.

This commit is contained in:
Joao Patricio 2023-05-25 17:44:24 +01:00
parent af9240240d
commit 18c69d731c
3 changed files with 5 additions and 3 deletions

View File

@ -32,7 +32,7 @@ public function submit()
session(['currentTeam' => $this->model]);
}
}
public function sentTestMessage()
public function sendTestNotification()
{
Notification::send($this->model, new DemoNotification);
}

View File

@ -4,6 +4,8 @@
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 @@ public function submit()
}
public function sendTestNotification()
{
Notification::send($this->model, new DemoNotification);
}
public function render()
{

View File

@ -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>