© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
12 replies
pgferro

Custom BulkAction

Hi guys, newbie here...
in a table i would like to pass the selected record to a controller and then perform some operations with the data.
Here is what i have When I click on the action button nothing happens

->bulkActions([
                Tables\Actions\BulkActionGroup::make([
                    Tables\Actions\DeleteBulkAction::make(),

                    BulkAction::make('print_label')
                        ->label('print')
                        ->color('success')
                        ->icon('heroicon-o-printer')
                        ->action(function($livewire) {
                            url(route('printlabels', ['options' => $livewire->getSelectedTableRecords()]));
                        })

                ]),
            ]);
->bulkActions([
                Tables\Actions\BulkActionGroup::make([
                    Tables\Actions\DeleteBulkAction::make(),

                    BulkAction::make('print_label')
                        ->label('print')
                        ->color('success')
                        ->icon('heroicon-o-printer')
                        ->action(function($livewire) {
                            url(route('printlabels', ['options' => $livewire->getSelectedTableRecords()]));
                        })

                ]),
            ]);

Thanks for the help!!
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Custom Bulkaction generate duplicate queries
FilamentFFilament / ❓┊help
3y ago
Bulkaction notification
FilamentFFilament / ❓┊help
12mo ago
BulkAction authorization?
FilamentFFilament / ❓┊help
3y ago
how to trigger notification on a custom bulkaction?
FilamentFFilament / ❓┊help
2y ago