Skip to content

Commit

Permalink
Merge pull request #10 from Naoray/patch-1
Browse files Browse the repository at this point in the history
Update InputFilter.php
  • Loading branch information
KasparRosin authored Feb 22, 2024
2 parents 5f34706 + 0d197d2 commit 08aa92f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/InputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Outl1ne\NovaInputFilter;

use Illuminate\Http\Request;
use Laravel\Nova\Filters\Filter;
use Laravel\Nova\Http\Requests\NovaRequest;

class InputFilter extends Filter
{
Expand All @@ -20,7 +20,7 @@ public function __construct($options = null, $name = null)
if (!empty($name)) $this->withName($name);
}

public function apply(Request $request, $query, $search)
public function apply(NovaRequest $request, $query, $search)
{
return $query->where(function ($query) use ($search) {
$model = $query->getModel();
Expand Down Expand Up @@ -59,7 +59,7 @@ public function asNumber($number = true, $integersOnly = false)
return $this;
}

public function options(Request $request)
public function options(NovaRequest $request)
{
return $this->options;
}
Expand Down

0 comments on commit 08aa92f

Please sign in to comment.