Skip to content

Commit 199a953

Browse files
committed
Support for using append attributes as key names
1 parent 483a4d6 commit 199a953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/Eloquent/Concerns/HasAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected function getArrayableAppends()
1212
if (is_string($k)) {
1313
$columns = explode('|', $k);
1414
foreach ($columns as $column) {
15-
if (!isset($this->attributes[$column])) {
15+
if (!isset($this->$column)) {
1616
unset($this->appends[$k]);
1717
}
1818
}

0 commit comments

Comments
 (0)