Skip to content

Commit

Permalink
feat: get apply class method
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Dec 30, 2024
1 parent 205be9a commit 99efa81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Applies/Fields/FileModelApply.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function apply(FieldContract $field): Closure
};
}

private function store(File $field, UploadedFile $file): string
public function store(File $field, UploadedFile $file): string
{
$extension = $file->extension();

Expand Down
2 changes: 1 addition & 1 deletion src/Traits/Resource/ResourceModelQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ protected function withFilters(): static
return;
}

$filterApply = appliesRegister()->findByField($filter, 'filters', ModelResource::class);
$filterApply = $filter->getApplyClass('filters', ModelResource::class);

$defaultApply = static fn (Builder $query): Builder => $query->where(
$filter->getColumn(),
Expand Down

0 comments on commit 99efa81

Please sign in to comment.