marcosmarcolin
marcosmarcolin
FFilament
Created by ericmp on 1/4/2024 in #❓┊help
Redirect after bulk action
It's a similar problem to what you were experiencing, I ended up opening the topic before finding this one.
20 replies
FFilament
Created by ericmp on 1/4/2024 in #❓┊help
Redirect after bulk action
Hi @ericmp, It was the solution I found too, thanks for your time. https://discord.com/channels/883083792112300104/1209647616023863308
20 replies
FFilament
Created by marcosmarcolin on 2/20/2024 in #❓┊help
Redirect with ->url() with bulk action?
I did something like this to surprise, but I don't think it's ideal.
->bulkActions([
BulkAction::make('pdf')->label('Generate PDF')->icon('heroicon-o-document')
->color('info')
->action(function ($records, $livewire) {
$ids = [];
foreach ($records as $record) {
$ids[] = $record->id;
}

$ids = implode(',', $ids);

$livewire->redirectRoute(
'step',
['step' => $ids]
);
})
]);
->bulkActions([
BulkAction::make('pdf')->label('Generate PDF')->icon('heroicon-o-document')
->color('info')
->action(function ($records, $livewire) {
$ids = [];
foreach ($records as $record) {
$ids[] = $record->id;
}

$ids = implode(',', $ids);

$livewire->redirectRoute(
'step',
['step' => $ids]
);
})
]);
2 replies
FFilament
Created by ericmp on 1/4/2024 in #❓┊help
Redirect after bulk action
@ericmp Hi, did you manage to solve it? I am in the same.
20 replies
FFilament
Created by marcosmarcolin on 11/16/2023 in #❓┊help
Retrieve ID of selected child from related table
I found it, I can retrieve it with: $this->mounted Table ActiveRecord. Solved.
2 replies