F
Filament10mo ago
Dex

Override getTableKeyRecord function

Is it possible to override this function, because I am using a view from another connection without indexes, so filament doesnt like that. I found out that I can just rewrite like
public function getTableRecordKey(Model $record): string
{
return uniqid();
}
public function getTableRecordKey(Model $record): string
{
return uniqid();
}
https://github.com/filamentphp/filament/discussions/3182 But where exactly because I don`t want to make it global in the vendor directory.
GitHub
Updated Filament: getTableRecordKey() Prevents Display Of Aggregate...
Just updated Filament forms & table builder to latest version, and one of my dashboard doesn't work anymore. I believe the problem is because this particular dashboard shows aggregated repo...
1 Reply
Dex
DexOP10mo ago
Solved by importing the Illuminate\Database\Eloquent\Model class
Want results from more Discord servers?
Add your server