buzkall
Wrong indicator in SelectFilter with multiple and translatable
The snippet you gave me is for the option labels
I'm talking here to the indicators in the table, which can be solved using something like this in each filter (which doesn't need to be done if the filter is not multiple)
6 replies
activeLocale error in ListResource using Filament Spatie Translatable
Do you know how I can get the active locale, to use it for example in a filter?
i'm trying to filter by a json translatable field and want to modify tthe TernaryFilter queries, but I'm not getting the active locale 😦
40 replies
SQLSTATE[HY000]: General error: 1364 Field 'locked' doesn't have a default value
In case someone else has this problem, here is the Spatie's upgrade guide to settings v3. -> https://github.com/spatie/laravel-settings/blob/main/UPGRADING.md
The main part to avoid the duplication of settings is the unique key in the migration!
7 replies
Browser notification using FilamentNotifications?
I'm using Pusher and Laravel echo and if I add this code to a new route (outside Filament) this works and I see a browser notification
But if I I register a new script with Filament::registerScripts in my AppServiceProvider and try run the same code, the console.log works, but I get an error in the Notification.requestPermission line saying that requestPermission is not a function
I don't understand why 😦
10 replies