Skip to content

Commit

Permalink
Remove unneeded check
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 authored Nov 1, 2024
1 parent 073e99e commit 29899b9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/Models/Concerns/WithPaginateScroll.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

namespace Foxws\WireUse\Models\Concerns;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Collection;
use Laravel\Scout\Scout;
use Illuminate\Pagination\Paginator;
use Livewire\WithPagination;

trait WithPaginateScroll
Expand All @@ -14,14 +12,6 @@ trait WithPaginateScroll
use WithQueryBuilder;
use WithScroll;

public function bootWithPaginateScroll(): void
{
throw_if(
! method_exists($this, 'getBuilder') ||
! ($this->getBuilder() instanceof Builder || ! $this->getBuilder() instanceof Scout)
);
}

public function updatedPage(): void
{
$this->fetch();
Expand Down

0 comments on commit 29899b9

Please sign in to comment.