Skip to content

Commit e14a355

Browse files
authored
Make nested scope compatible with older Laravel
1 parent 59f1ae0 commit e14a355

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)