lasthourcloud/app/Http/Livewire/Notifications/Test.php

20 lines
411 B
PHP
Raw Normal View History

2023-06-01 10:15:33 +00:00
<?php
namespace App\Http\Livewire\Notifications;
use App\Models\Server;
use App\Models\Team;
use App\Notifications\TestNotification;
use Livewire\Component;
use Notification;
class Test extends Component
{
2023-06-02 10:34:45 +00:00
public Team $model;
2023-06-01 10:15:33 +00:00
public function sendTestNotification()
{
Notification::send($this->model, new TestNotification);
$this->emit('saved', 'Test notification sent.');
}
}