How to replace default actions in the Create and Edit pages?

I'm trying to build something similar to WordPress with Filament whereby a record can be published or saved as a draft.

So basically I need to override the default Create functionality.

I would like to remove the default "Create" and "Create & create another" buttons

Add add these three custom actions instead "Save Draft", "Publish", "Schedule"

and on the EditPage if $record->isPublished() an "Unpublish" action will be rendered instead of "Publish"
Was this page helpful?