Eager loading relationships in table
I currently have this piece of code:
When trying to search i get the error "SQLSTATE[42P01]: Undefined table: 7 ERROR: missing FROM-clause entry for table "person" LINE 1: ...nt(*) as aggregate from "volunteers" where (lower(person.fir... ^"
Does anyone have an insight in how i might fix this? I thought the $query->with() would already solve it but unfortuantly it doesn't
When trying to search i get the error "SQLSTATE[42P01]: Undefined table: 7 ERROR: missing FROM-clause entry for table "person" LINE 1: ...nt(*) as aggregate from "volunteers" where (lower(person.fir... ^"
Does anyone have an insight in how i might fix this? I thought the $query->with() would already solve it but unfortuantly it doesn't
Solution
Can you try using 
person.lastname as the name so that filament knows it’s a relation?