Notifications not showing up.
Hi.
I wanted to add Notifications to actually existing Laravel project and I did everything that docs says, but any Notification does not show up.
There is no error/500/anything that could be helpful. 😦
1. npm install tailwindcss... - everything is fine here.
2. I configured tailwind.config.js
3. For styles im using scss - tailwind is imported here as well
4. postcss.config.js - looks same like in docs
5. Layout is also configured
24 Replies
Did you include the blade view? Is this in the admin panel or the none-admin panel?
i got two blade layouts - one for auth and second for dashboard
this one is for auth
i created simple trait that will give me validation error
i also tried to get notification after log-in (in mount method) but its not showing up as well
Sending by javascript is not working too.
Add this to your view
@livewire(Filament\Livewire\Notifications::class)
. I think the docs need to be updated.Added now its showing up in html but there's probably wrong in z-index or something
it's here but not visible D:
Where did you add it? Have a look at the panels base layout component. https://github.com/filamentphp/filament/blob/3.x/packages/panels/resources/views/components/layout/base.blade.php
GitHub
filament/packages/panels/resources/views/components/layout/base.bla...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
above content yield
nothing changes when i put this below
also, can't import it in that way
If it’s a z-index issue then you’ll have to figure that out yourself. There’s no way for us to know all of your app’s css and specificity.
What? You said you added it and it was working.
I said that i used this one - Filament\Notifications\Livewire\Notifications
I don't know if there's any diffs
Well it's not z-index
i removed whole body classess and leave only blank page with that notification, its still hidden
It’s probably just not styled. That’d be my guess.
It shows up after i removed "invisible" class from div with notificationComponent
before:
after:
that styling is still off. did you follow all of the install instructions in the docs. I'm think you missed a step somewhere.
tailwind config
not sure, something is off in your app. if you have a repo i can look at, i could maybe help more.
maybe @FilamentStyles directive is not working?
ah, nope - it's here
i have no idea what happen
did I need Filament Panel to use other packages?
i guess im not
no, the panel is just a package that ties them all together.
the other packages will work by themselves without a panel
hi did you find the problem or solution?