Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update HandlesBoundValues.php
  • Loading branch information
pascalbaljet committed Dec 15, 2020
commit 58568a57873fcf6c88765bfb94b73b31a52f38c2
4 changes: 2 additions & 2 deletions src/Components/HandlesBoundValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ private function getBoundValue($bind, string $name)
$bind = $bind ?: $this->getBoundTarget();

if ($this->manyRelation) {
return $this->findOptionsFromRelation($bind, $name);
return $this->getAttachedKeysFromRelation($bind, $name);
}

return data_get($bind, $name);
}

private function findOptionsFromRelation($bind, string $name)
private function getAttachedKeysFromRelation($bind, string $name)
{
if (!$bind instanceof Model) {
return;
Expand Down