Skip to content

Commit

Permalink
use Str::lower
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz-h committed Sep 5, 2016
1 parent eeaf2eb commit 95e19d2
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 @@ -1060,7 +1060,7 @@ public function withCount($relations)
// name and remember the last part as output name.
$nameParts = explode(' ', $name);
$resultName = '';
if (count($nameParts) == 3 && strtolower($nameParts[1]) == 'as') {
if (count($nameParts) == 3 && Str::lower($nameParts[1]) == 'as') {
$name = $nameParts[0];
$resultName = $nameParts[2];
}
Expand Down

0 comments on commit 95e19d2

Please sign in to comment.