Sending e-mails and settings on Team.
This commit is contained in:
parent
af9240240d
commit
18c69d731c
@ -32,7 +32,7 @@ public function submit()
|
||||
session(['currentTeam' => $this->model]);
|
||||
}
|
||||
}
|
||||
public function sentTestMessage()
|
||||
public function sendTestNotification()
|
||||
{
|
||||
Notification::send($this->model, new DemoNotification);
|
||||
}
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user