Flu
Flu
FFilament
Created by Flu on 3/16/2024 in #❓┊help
Computed Property Filter On Table Builder?
Hey, I'm using Filament Tables outside of Filament just to quickly bootstrap an app I'm using a service and calling a method that returns an enum of strings, this shows fine in my table:
StatusColumn::make(name: 'status')
->state(state: function (EmployeeService $employeeService, Employee $record): string {
return $status = $employeeService->calculateStatus($record)->value;
})
StatusColumn::make(name: 'status')
->state(state: function (EmployeeService $employeeService, Employee $record): string {
return $status = $employeeService->calculateStatus($record)->value;
})
it's a computed property with a few nested many to many relationships and calculations to get the value I'm trying to workout how I can add a filter for this property, does anyone have any examples or suggestions? It's not stored in the DB and has to be computed
6 replies