Closed michele-grifa closed 7 months ago
have you added SetTheme
middleware in the panel provider?
Yes, i put it first, but the order doesn't change the behavior .
In another project that has tenancy, the problem is the same.
can't reproduce locally, can you try clearing config cache or check in SetTheme middleware line 48 if it returns correct theme after changing a theme
Tomorrow i will try.
I tried to config cache without success. At line 48 the theme is always the DefaultTheme. If I put the middleware after all default Filament ones, it works.
It works with tenancy too.
yes, the middleware have to come after the authenticate middleware otherwise there is no user yet when it is run
What happened?
Currently the plugin only works if is set to global mode. If is set to user mode, the plugin correctly update the columns in the database for the user but the theme is not changed.
How to reproduce the bug
Package Version
3.0.22
Filament Version
3.2.61
PHP Version
8.1.25
Laravel Version
10.48.4
Notes
No response