Bulk Action - V3

Hi was searching for changes on bulk action in V3 as it works fine in V2...

Tables\Actions\BulkAction::make('Update')
->label(__('Update Big Commerce'))
->action(fn ( Collection $records) => $records->each(function ($record)
{
(new updateCustomers)->updateCustomerGroups($record->vend_id);

}))

getting an error

($records) must be of type App\Filament\Resources\Collection, Illuminate\Database\Eloquent\Collection given.

cant find a way to qualify as fialment resource... everything else seems to work fine. appreciate any help or hints...
Solution
That definitely didn’t work in v2. Read your error message carefully. You didn’t import the collection
Was this page helpful?