FilamentF
Filament12mo ago
Matthew

Launch one table action from the createAction

Hi,

Can anyone help point me in the right direction of launching a table action from the completion of a CreateAction.

Dependent on the outocome of the entry, and the specifics of the data entered, I would like it to write the row, and then launch straight into a table action for that row.

Thanks
Solution
maybe

Actions\CreateAction::make()
    ->after(function (YourModel $record) {
        $this->mountTableAction('edit', $record->id);
    })
Was this page helpful?