Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

robindrost's avatar

Alter default resource delete action

Hello,

Is it possible to alter the default delete action of resources? For example add any fields to the delete modal when a user clicks on the trash can?

Or is this only possible through a custom action or resource tool?

Kind regards, Robin

0 likes
2 replies
robindrost's avatar

Thanks for the reply psylogic.

What I mean is the delete button (trash can icon) on the index of a resource (next to the view and edit icons). When you click on it you will get a modal asking to confirm the delete of the selected model.

Little context: When a user delete's a model from the index overview I would like to add a custom message that is send to users that are related to that model.

What I would like to do, is add some custom functionality to the modal that is shown and act on it. I am assuming this is a normal Nova action like other custom actions where you can add fields and and a handle method.

Please or to participate in this conversation.