© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
41 replies
arthurpar

Notifications illegal mix of collations error

Hi,
I tried to set up notifications for my Filament application. I followed the documentation for migrating the notifications table and created it. Afterward, I added
->databaseNotifications()
->databaseNotifications()
to my AdminPanelProvider.

However, when I try to access the panel, I encounter a collation error. I attempted to change the table collation between utf8mb3_general_ci and utf8mb3_unicode_ci, but it didn't make any difference. I managed to fix the error by changing the
where
where
clause in this line to
whereJsonContains
whereJsonContains
. However, since I can't really modify a file in the vendor directory, I would like to know if you have another solution.

Thanks in advance.
https://github.com/filamentphp/filament/blob/3.x/packages/notifications/src/Livewire/DatabaseNotifications.php#L88
image.png
GitHub
filament/packages/notifications/src/Livewire/DatabaseNotifications....
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
filament/packages/notifications/src/Livewire/DatabaseNotifications....
Solution
Hi,
I managed to make it work by deleting my db completely and recreating it in utf8mb4_unicode_ci so it's definitely an encoding error... I'll just have to find out how to convert my current db to utf8mb4_unicode_ci I think I did it wrongly last night. Thank you very much for the help
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Notifications reduction of amount of showed notifications
FilamentFFilament / ❓┊help
3y ago
Notifications component error
FilamentFFilament / ❓┊help
3y ago
Illegal offset error upon adding data
FilamentFFilament / ❓┊help
2y ago
V3 Notifications Js error
FilamentFFilament / ❓┊help
3y ago