JSPlumbField::setLinksOutRelation
Set the name of a relation on each node that will point to the list of nodes for which there are outbound links. Defaults to "LinksOut"
The second argument is an ID field name. If linksOutRelation directly lists node objects, then the default value of "ID" will suffice. This would be the case if, for example, you used a many-many relation. If, however, linksOutRelation lists an intermediary class with a has_one relation to nodes, then idField can be set to the ID field for that has one, e.g. 'DestID'. The relation should have functioning add() and removeById() methods; these will be used to edit the links.
Signature
public function setLinksOutRelation(
$linksOutRelation,
[string
$idField = 'ID'] )
Parameters
$linksOutRelation
—$idField
— string