Skip to content

Commit

Permalink
remove Deprecated of lists to pluck
Browse files Browse the repository at this point in the history
  • Loading branch information
Trexology committed Feb 20, 2017
1 parent de29c91 commit fbd00ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getCurrentPoints(Model $pointable)
where('pointable_id', $pointable->id)
->where('pointable_type', $pointable->getMorphClass())
->orderBy('created_at', 'desc')
->lists('current')->first();
->pluck('current')->first();

if (!$currentPoint) {
$currentPoint = 0.0;
Expand Down

0 comments on commit fbd00ff

Please sign in to comment.