Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af303c7

Browse files
committed
fix alias usage
1 parent 76942e8 commit af303c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Eloquent/Builder.php

Lines changed: 1 addition & 1 deletion
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)