© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
antonino

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
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

bulk action
FilamentFFilament / ❓┊help
3y ago
Bulk Action
FilamentFFilament / ❓┊help
3y ago
[V3] Run Export Action for all records without bulk
FilamentFFilament / ❓┊help
6mo ago
Persistent bulk action
FilamentFFilament / ❓┊help
16mo ago