a lot hehe
This commit is contained in:
19
app/Http/Livewire/Notifications/Test.php
Normal file
19
app/Http/Livewire/Notifications/Test.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user