Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make nested scope compatible with older Laravel
  • Loading branch information
hizzely authored Oct 11, 2020
commit e14a355d9787a608bd1efd35236b62475f8cf4c4
2 changes: 1 addition & 1 deletion src/Filters/FiltersScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class FiltersScope implements Filter
{
public function __invoke(Builder $query, $values, string $property): Builder
{
$propertyParts = Str::of($property)->explode('.');
$propertyParts = collect(explode('.', $property));

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

Expand Down