z-Fabiano Fernandes
z-Fabiano Fernandes
FFilament
Created by Franck Darren on 10/28/2024 in #❓┊help
the table action button does not retrieve the correct record
Simple resource .... Deleted and recreated, but error still exists. Not working (get always first row of table) ->action(function (Sale $record) { dd($record->id)} Working fine ->url(fn (Sale $record): string => '/sales/' . $record->id . '/refund')
14 replies
FFilament
Created by Franck Darren on 10/28/2024 in #❓┊help
the table action button does not retrieve the correct record
Not working
14 replies
FFilament
Created by Franck Darren on 10/28/2024 in #❓┊help
the table action button does not retrieve the correct record
@Leandro Ferreira Everything was working perfectly until yesterday. But this code working very well ->url(fn (Model $record): string => '/sales/' . $record->id . '/refund')
14 replies
FFilament
Created by Franck Darren on 10/28/2024 in #❓┊help
the table action button does not retrieve the correct record
@Leandro Ferreira Tables\Actions\Action::make('refund') ->action(function (Sale $sale) { dd($sale->id); }) Same problem. Always get first row sale->id 😦
14 replies
FFilament
Created by Franck Darren on 10/28/2024 in #❓┊help
the table action button does not retrieve the correct record
@Leandro Ferreira Simple code ... Tables\Actions\Action::make('refund') ->action(function (Model $sale) { dd($sale->id); }) Always get first record orf the table
14 replies
FFilament
Created by Franck Darren on 10/28/2024 in #❓┊help
the table action button does not retrieve the correct record
Hi, I'm having the same problem. The table action always get the first row of the table
14 replies
FFilament
Created by z-Fabiano Fernandes on 2/7/2024 in #❓┊help
Extra attributes on from buttons
Resolved: I overrode the getCreateFormAction, getCreateAnotherFormAction, getCancelFormAction methods of the Resources, informing in the Action the extraAttributes that I wanted.
3 replies
FFilament
Created by Chris on 12/22/2023 in #❓┊help
Change "Submit" button text on an Action Modal?
Yes, it possible ->modalSubmitActionLabel('Yes, delete it') https://filamentphp.com/docs/3.x/actions/modals
3 replies