© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Ehsan

Url generation from BulkAction

I want to generate Identity Cards for selected members from my
MemberResource
MemberResource


The identity cards will be visible to user before printing on a new page.

I have created below bulk action to achieve the same. I have also created a custom page for this new
route
route
.

BulkAction::make('generate_id')
  ->label('Generate ID Card')
  ->requiresConfirmation()
  ->action(function ($livewire, Collection $records) {
    $memberIds = implode(',', $records->pluck('id')->all());
    $livewire->js("window.open('members/print-id-cards/{$memberIds}', '_blank')");
  })                    
BulkAction::make('generate_id')
  ->label('Generate ID Card')
  ->requiresConfirmation()
  ->action(function ($livewire, Collection $records) {
    $memberIds = implode(',', $records->pluck('id')->all());
    $livewire->js("window.open('members/print-id-cards/{$memberIds}', '_blank')");
  })                    


This works and the member IDs are passed to this custom route comma separated. But this exposes IDs to end user.

I would like to convert the route to
POST
POST
instead of
GET
GET
so that I can pass the data to it.

Please help with the same or suggest any other way of achieving this.
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

Using url() on BulkAction
FilamentFFilament / ❓┊help
3y ago
open new tab from Bulkaction
FilamentFFilament / ❓┊help
3y ago
Retrieving form data from a BulkAction
FilamentFFilament / ❓┊help
3y ago
Generate a pdf from BulkAction values
FilamentFFilament / ❓┊help
3y ago