Skip to content

Commit 6091048

Browse files
committed
fix alias usage
1 parent 5007986 commit 6091048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Eloquent/Builder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ public function firstOr($columns = ['*'], Closure $callback = null)
510510
public function value($column)
511511
{
512512
if ($result = $this->first([$column])) {
513-
return $result->{$column};
513+
return $result->{Str::afterLast($column, '.')};
514514
}
515515
}
516516

0 commit comments

Comments
 (0)