Files
qds/app/Livewire/NotificationSound.php
dhanabalan 3f0d529640
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 1m4s
Initial commit for new repo
2025-12-16 17:05:04 +05:30

35 lines
682 B
PHP

<?php
namespace App\Livewire;
use Livewire\Component;
use Livewire\Attributes\On;
class NotificationSound extends Component
{
protected $listeners = ['playNotificationSound' => 'playSound', 'playWarnSound' => 'playWarnSound', 'beepSound' => 'beepSound'];
public function playSound()
{
$this->dispatch('play-notification-sound');
}
public function playWarnSound()
{
//dd('test');
$this->dispatch('play-warn-sound');
}
public function beepSound()
{
//dd('test');
$this->dispatch('play-beep-sound');
}
public function render()
{
return view('livewire.notification-sound');
}
}