diff --git a/src/Models/Concerns/WithPaginateScroll.php b/src/Models/Concerns/WithPaginateScroll.php index 58ae709..d8693d8 100644 --- a/src/Models/Concerns/WithPaginateScroll.php +++ b/src/Models/Concerns/WithPaginateScroll.php @@ -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 @@ -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();