Identify primaryKeyValue for pivot table

given table model_has_permissions from Spatie Permission package, the columns are:

  • permission_id
  • model_type
  • model_id

How do I can set correct delete button? Should I go by ActionButton?

Thanks.