We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3d24ef commit 4e704acCopy full SHA for 4e704ac
src/Traits/WithBulkActions.php
@@ -14,7 +14,7 @@ trait WithBulkActions
14
public string $primaryKey = 'id';
15
public bool $selectPage = false;
16
public bool $selectAll = false;
17
- public $selected = [];
+ public array $selected = [];
18
public array $bulkActions = [];
19
public bool $hideBulkActionsOnEmpty = false;
20
@@ -49,7 +49,7 @@ public function updatedSelectPage($value): void
49
50
public function selectPageRows(): void
51
{
52
- $this->selected = $this->rows->pluck($this->primaryKey)->map(fn ($key) => (string) $key);
+ $this->selected = $this->rows->pluck($this->primaryKey)->map(fn ($key) => (string) $key)->toArray();
53
}
54
55
public function selectAll(): void
0 commit comments