How can i change tableRecord key?

i try this but it doesn't work, any help please?

public function getTableRecordKey(Model $record): string
    {
        return $record->user_id;
    }


on resource i was able to change it but on table it doesn't work.

public static function getRecordRouteKeyName(): string
    {
        return 'user_id';
    }
Was this page helpful?