diff --git a/src/View/Components/Table.php b/src/View/Components/Table.php index 8320878a..06f88264 100644 --- a/src/View/Components/Table.php +++ b/src/View/Components/Table.php @@ -40,6 +40,11 @@ public function __construct( // Get all ids for selectable and expandable features public function getAllIds(): array { + // Pagination + if ($this->rows instanceof ArrayAccess) { + return $this->rows->pluck($this->selectableKey)->all(); + } + return collect($this->rows)->pluck($this->selectableKey)->all(); }