FilamentF
Filament2y ago
Lars

Notification not working

Hi all,

I want to use the filament notification in my webshop using JS I also use the Filament panel for my admin panel.
I have followed the installation guide (for the notifications) but the notification aren't working.

App.blade.php
<!DOCTYPE html>
<html lang="nl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
          integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
          crossorigin="anonymous" referrerpolicy="no-referrer"/>
    <title>{{ config('app.name') }} - @yield("title")</title>
    @filamentStyles

    @vite('resources/css/app.css')
</head>
<body class="flex flex-col min-h-screen justify-between m-0 p-0 bg-azg-gray">
@include('partials.header')
<main class="flex flex-1 h-full ">
    @yield('content')
</main>
@include('partials.footer')
@filamentScripts

@vite('resources/js/app.js')

<script>
    new FilamentNotification()
        .title('Saved successfully')
        .send()
    console.log('Hello')
</script>
</body>
</html>


The console output;


Anyone know why the notifaction are not displayed?

Thanks!
image.png
Was this page helpful?