From 29899b97450bc8c638738680dd2bb45f472cea98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20M=2E?= Date: Fri, 1 Nov 2024 13:54:42 +0100 Subject: [PATCH] Remove unneeded check --- src/Models/Concerns/WithPaginateScroll.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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();