Skip to content

Commit 95e19d2

Browse files
committed
use Str::lower
1 parent eeaf2eb commit 95e19d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Eloquent/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ public function withCount($relations)
10601060
// name and remember the last part as output name.
10611061
$nameParts = explode(' ', $name);
10621062
$resultName = '';
1063-
if (count($nameParts) == 3 && strtolower($nameParts[1]) == 'as') {
1063+
if (count($nameParts) == 3 && Str::lower($nameParts[1]) == 'as') {
10641064
$name = $nameParts[0];
10651065
$resultName = $nameParts[2];
10661066
}

0 commit comments

Comments
 (0)