Equivalent of UpdateOrCreate
Hello, I want the createAction to check if a record already exists and then update it instead of creating a new entry everytime. I've thought about using handleRecordCreation() but it creates a new record anyway.
2 Replies
Don’t use CreateAction and just use an Action with whatever action() logic you want
https://filamentphp.com/docs/3.x/actions/prebuilt-actions/create#customizing-the-creation-process
there's an
->using
method