getTableQuery() for pivot table that does not have a primary key
hey friends, i try to display a pivot table that does not have a primary key. i have a model for the pivot table. if i use the following query
´´´php
protected function getTableQuery(): Builder|Relation
{
return Insight::query();
}
´´´
i get the following error:
´´´
App\Http\Livewire*::getTableRecordKey(): Return value must be of type string, null returned
´´´
if i add a primary key to the pivot table, it works without problems. any ideas?
´´´php
protected function getTableQuery(): Builder|Relation
{
return Insight::query();
}
´´´
i get the following error:
´´´
App\Http\Livewire*::getTableRecordKey(): Return value must be of type string, null returned
´´´
if i add a primary key to the pivot table, it works without problems. any ideas?