Skip to content

Commit 3b49273

Browse files
authored
Merge pull request spatie#542 from hizzely/master
Make nested scope compatible with older Laravel
2 parents 59f1ae0 + e14a355 commit 3b49273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Filters/FiltersScope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class FiltersScope implements Filter
1414
{
1515
public function __invoke(Builder $query, $values, string $property): Builder
1616
{
17-
$propertyParts = Str::of($property)->explode('.');
17+
$propertyParts = collect(explode('.', $property));
1818

1919
$scope = Str::camel($propertyParts->pop());
2020

0 commit comments

Comments
 (0)