Skip to content

Commit

Permalink
fix alias usage
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 29, 2020
1 parent 5007986 commit 6091048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ public function firstOr($columns = ['*'], Closure $callback = null)
public function value($column)
{
if ($result = $this->first([$column])) {
return $result->{$column};
return $result->{Str::afterLast($column, '.')};
}
}

Expand Down

0 comments on commit 6091048

Please sign in to comment.