coryrose1 / livewire-tables

An extension for Laravel Livewire that allows you to effortlessly scaffold datatables with optional pagination, search, and sort.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Always supplying primary key to table view

coryrose1 opened this issue · 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?