lasthourcloud/app/Http/Livewire/Notifications/Test.php
Andras Bacsai 0aa816b4f2 a lot hehe
2023-06-01 12:15:33 +02:00

20 lines
418 B
PHP

<?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
{
public Team|Server $model;
public function sendTestNotification()
{
Notification::send($this->model, new TestNotification);
$this->emit('saved', 'Test notification sent.');
}
}