BlueForge
BlueForge
FFilament
Created by BlueForge on 7/18/2024 in #❓┊help
Async Column
Hey! In my app I need to make some optimizations. Table load is too long and I'm looking for something like Async Column where i would specify rest api endpoint/callback and this column would be resolved asynchronously while rest of content is already in the browser. Is there any way to do this with current API (I already made a custom component and it works fine but I want to structurize this solution)? Is there any thread/issue (I did not found any) that is discussing it?
10 replies
FFilament
Created by BlueForge on 7/10/2024 in #❓┊help
Using session in MenuItem
Hi is there any possibility to use session() or auth()->getSession() in MenuItem inside PanelProvider? Following code:
->userMenuItems([
'session' => MenuItem::make()
->label(auth()->getSession()->get('value')),
])
->userMenuItems([
'session' => MenuItem::make()
->label(auth()->getSession()->get('value')),
])
Produces error: Target class [hash] does not exist. If I use session() directly:
->userMenuItems([
'session' => MenuItem::make()
->label(session('value')),
])
->userMenuItems([
'session' => MenuItem::make()
->label(session('value')),
])
Then following error appears: Target class [cache] does not exist.
3 replies