Need help to overwrite the default create action in a resource /create page.
I'm having a hard time trying to overwrite the default create process in a specific /create page of a resource to include some custom logic I need to run (upload a file, then execute a custom function calling a service).
I've being googling a lot and I didn't find anything helpful, the documentation about it isn't clear on whether it is even possible to do this.
I 'm probably doing something wrong here or maybe I did skip some important bit of information.
Can Anyone point me in the right direction?
6 Replies
When reading this I don't have a clear mind on where the modifications should go to properly work. Is it in the pages/createXYZResource file of the specific resource?
if you are using pages https://filamentphp.com/docs/3.x/panels/resources/creating-records#customizing-the-creation-process
add this method in the CreateXXX.php
Okay, then I will be able to use CreateAction::make()?
if you are using resource pages, create action is only a link to this page