Sending e-mails and settings on Team.
This commit is contained in:
parent
af9240240d
commit
18c69d731c
@ -32,7 +32,7 @@ class DiscordSettings extends Component
|
|||||||
session(['currentTeam' => $this->model]);
|
session(['currentTeam' => $this->model]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public function sentTestMessage()
|
public function sendTestNotification()
|
||||||
{
|
{
|
||||||
Notification::send($this->model, new DemoNotification);
|
Notification::send($this->model, new DemoNotification);
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,8 @@ namespace App\Http\Livewire\Notifications;
|
|||||||
|
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\Team;
|
use App\Models\Team;
|
||||||
|
use App\Notifications\DemoNotification;
|
||||||
|
use Illuminate\Support\Facades\Notification;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
|
|
||||||
class EmailSettings extends Component
|
class EmailSettings extends Component
|
||||||
@ -48,7 +50,7 @@ class EmailSettings extends Component
|
|||||||
}
|
}
|
||||||
public function sendTestNotification()
|
public function sendTestNotification()
|
||||||
{
|
{
|
||||||
|
Notification::send($this->model, new DemoNotification);
|
||||||
}
|
}
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
</x-inputs.button>
|
</x-inputs.button>
|
||||||
<x-inputs.button
|
<x-inputs.button
|
||||||
class="mt-4 btn btn-xs no-animation normal-case text-white btn-primary"
|
class="mt-4 btn btn-xs no-animation normal-case text-white btn-primary"
|
||||||
wire:click="sentTestMessage"
|
wire:click="sendTestNotification"
|
||||||
>
|
>
|
||||||
Send test message
|
Send test message
|
||||||
</x-inputs.button>
|
</x-inputs.button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user