livewire-datatables
livewire-datatables copied to clipboard
BelongsToMany Relationshop
Hello! I need a column to show a linked list of belongsToMany Relationsships. Something like:
Column::callback(["areas.id", "areas.name"], function($id, $name){
return "<a href=\"" . route("areas.edit", [$id]) . "\">" . $name . "</a>";
})->label(__("Service Areas")),
This code would work, for a belongsTo
relationship, but not for a belongsToMany
. Any ideas?
Possibly related issues: #327, #323
Hi, I have the same need, put link on many relation list (id, name) on the table. Could i use the list with a view ?
No Update ?