Notifications not showing on a normal (outside of dashboard page)

I'm propably missing something, but i can't find anything in the docs i need to add, can someone help me?
6 Replies
DanielvdSpoel
DanielvdSpoelOP16mo ago
Yes, this is what my layout looks like:
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="application-name" content="{{ config('app.name') }}">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{{ config('app.name') }}</title>

<style>
[x-cloak] {
display: none !important;
}
</style>

@filamentStyles
@vite('resources/css/app.css')
</head>
<body class="antialiased bg-gray-100">
{{ $slot }}

@filamentScripts
</body>
</html>
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="application-name" content="{{ config('app.name') }}">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{{ config('app.name') }}</title>

<style>
[x-cloak] {
display: none !important;
}
</style>

@filamentStyles
@vite('resources/css/app.css')
</head>
<body class="antialiased bg-gray-100">
{{ $slot }}

@filamentScripts
</body>
</html>
awcodes
awcodes16mo ago
try adding @livewire(Filament\Livewire\Notifications::class) to your layout. The docs might need to be updated.
DanielvdSpoel
DanielvdSpoelOP16mo ago
yep that did the trick, docs need to be updated or it did for like a second lol
DanielvdSpoel
DanielvdSpoelOP16mo ago
Flare
Unable to find component: [filament.livewire.notifications] - The error occurred at http://localhost:8000
DanielvdSpoel
DanielvdSpoelOP16mo ago
now i'm gettign this error it works sometimes, interesting lol
Want results from more Discord servers?
Add your server