Josh
Cleaner way to do this with render hooks?
So I am wrapping a div around a greeting I am putting next to the user avatar to allow me to style things better, I have this which works but i wonder if theres a way to do it that I haven't thought of?
Context;
Its the only way I can think to have a div around my greeting and the usermenu dropdown that filament ships with without having to publish views and edit vendor code.
3 replies
Extend toggalbility of user-menu?
Evening!
Just wondering if theres a way to extend what can triger the user-menu?
At the moment clicking the avatar toggles the user menu if i have the persons name I want the whole div its in to be togglable.
So at the moment its
I want to be able to do something like this
Where the whole
flex flex-col
div would be toggleable if that makes sense? Can't seem to find anything to do it easily without making a whole component for it which i want to avoid! 🙂
Thanks in advance!3 replies
Optimising Search Functionality in FilamentPHP Player Table: Seeking Feedback and Suggestions
Hi everyone! I've been working on optimising my PlayerResource table in FilamentPHP and wanted to share my approach, especially regarding the searchable method. Here's what I've implemented:
In this setup, I've focused on making the username column searchable, including searching by Minecraft UUID and country codes. The username.blade.php view also displays the player's country flag and their Minecraft UUID, which is why I chose not to include separate columns for them in the table.
I'm keen to know if this is the most efficient approach or if there are better ways to handle this. Specifically, I'm curious about the use of the searchable method and its performance implications. Any feedback or suggestions would be greatly appreciated!
4 replies
Snapshot Missing - View Column with Livewire Component
Evening!
After some wisdom from you smart people!
I have a table defined on my PlayerResource with a
ViewColumn
that had a custom view;
Within the custom view I am calling a Livewire Component as seen below
This is the Livewire Component content
It works perfectly for the most part however I noticed that when I have per page as all, change it down to a smaller amount like 10, go to the next page and change it back to all it will fail to get and display the avatars from the page I had just been on.
I recieve the error Uncaught Snapshot
Is this something im doing or a limitation in filament? After any guidance!
See screen recording for demonstration 🙂11 replies