laravel-splade
laravel-splade copied to clipboard
Bulk action doesn't work
I investigated a bit and noted that in the performBulkAction
method from SpladeQueryBuilder.php, $this->builder->chunkById
doesn't return any result.
I tried with both built-in Query Builder and Spatie Query Builder declared in my Table class.
BUT, if I replace $this->builder->chunkById
by SpatieQueryBuilder::for(MyModel::class)->chunkById
or MyModel::query()->chunkById
, it works and return the Collection result.