livewire-tables icon indicating copy to clipboard operation
livewire-tables copied to clipboard

Always supplying primary key to table view

Open coryrose1 opened this issue 4 years ago • 0 comments

Should the primary key of the base model always be passed in $rowData?

What if someone wants to remove the ID column, but still needs the ID for use in links or otherwise?

Similarly, relationships primary key / id. In our demo app, the User hasOne Address. For the purposes of the table, we only pull the 'address.city' field. What if we want to link to that address by primary key, but don't want the primary key of the address as a table cell?

coryrose1 avatar Nov 19 '19 19:11 coryrose1