Why does toggle of columns is saved in session on demo.filamentphp.com, but not by default
If you go to https://demo.filamentphp.com/shop/products/products and toggle columns and refresh you can observe that they are saved in session. I looked into the source code and I couldn't find a reason why toggeling columns is saved in session.
4 Replies
No idea why it's like this in the demo. If you are looking for the method, it's this one:
https://filamentphp.com/docs/4.x/tables/filters/overview#persisting-filters-in-the-users-session
Thank you! It still doesn't work. The strange thing is that also the filters is not kept into session :/ I will create a reproduction repo to see if there is an issue on my end or something.
It seems that it's a bug in Filament. I created an issue: https://github.com/filamentphp/filament/issues/18285 Also, I added 2 repos for comparison and I deployed them using Forge VPS. Hope that helps!
GitHub
Persistence for Filament table elements is working when using in a ...
Package filament/tables Package Version v4.1.9 Laravel Version v12.34.0 Livewire Version v3.6.4 PHP Version PHP 8.4.1 Problem description I tried to use Filament's session persistence for table...