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;
}
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';
}
public static function getRecordRouteKeyName(): string
{
return 'user_id';
}
1 Reply
Dan Harrin
Dan Harrin2y ago
what are you actually trying to do why are you changing the key
Want results from more Discord servers?
Add your server