Searchable Relationships in Tables
So if i have , i cant simply add do
->searchable(['user.name','user.phone'])
to add the phone field as a searchable attribute to it. Whats proper way to handle this?5 Replies
Have you checked out this and it's not working?
ah yes. no i remember. sucks we have to go through that trouble though
wouldnt be an orwhere?
nvm
Actually it looks like you just use
so you just use the regular column names of that table
That's a lot easier!
of that relationsihip
lol, yep!
yours doesnt look like a relationship though, so a little different case
That was just copy pasted from the docs
It was mostly just to point out the closure in searchable
All kind of little details like what you found in Filament that are neat!