Override the default action for a CRUD

Hello everyone, I have a problem in Filament. I want to use the Command Pattern. This pattern allows you to create a separate class for each action, such as CRUD operations.
It is amazing for maintainability and refactoring.
So, my question is: how can I override the default create and edit actions provided by Filament resources?
1 Reply
Dennis Koch
Dennis Koch2mo ago
Either you replace them on every resource or you use to configure them globally
CreateAction::configureUsing(function ($action) {
return $action->action(...);
})
CreateAction::configureUsing(function ($action) {
return $action->action(...);
})

Did you find this page helpful?