Skip to content

Commit 75a6360

Browse files
committed
Fix Has filter not working without a scope
1 parent 15c1e3b commit 75a6360

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to
1111
### Fixed
1212

1313
- When creating a resource, set the context model prior to field validation
14+
- Laravel: Fix `Has` filter not working without a `scope`
1415

1516
## [1.0.0-beta.1] - 2023-09-24
1617

src/Laravel/Filter/Has.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class Has extends Filter
1010
{
1111
public ?string $relation = null;
12-
public ?Closure $scope;
12+
public ?Closure $scope = null;
1313

1414
public static function make(string $name): static
1515
{

0 commit comments

Comments
 (0)