© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
2 replies
mohamedali5738

how to make sound with notification database in filament

this is my code "
@php
$notificationss = DB::table('notifications')->get();
@endphp

@if(count($notificationss) >=1 )

<script>
function playNotificationSound() {
const audio = new Audio('/sounds/notification.wav');
audio.play();
}

</script>

<div class="notification">
<script>
playNotificationSound();
setInterval(() => {
playNotificationSound()
}, 10000);
</script>
</div>

@endif"
how to inject this code in filament ?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

how to make sound with notifications in filament
FilamentFFilament / ❓┊help
2y ago
how to make sound with notifications in filament
FilamentFFilament / ❓┊help
2y ago
Show Filament notification when database notification is received
FilamentFFilament / ❓┊help
2y ago
Laravel 11 Filament 3 database notification help
FilamentFFilament / ❓┊help
2y ago