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

junedc's avatar

Nova4 adding action in resource tool

Adding the action in the model resource is straight forward however how to add action in resource tool.

As explained in here https://nova.laravel.com/docs/4.0/customization/resource-tools.html#overview. with the given process in the docs, there's no explanation how can we add an action on the resource tool itself. This is fairly possible in Nova 3.5 by just adding these in CustomResource.vue file.

    <action-selector
                :resource-name="resource"
                :actions="tool['actions']"
                :pivot-actions="{ actions: [] }"
                :selected-resources="resourceId"
                @actionExecuted="$emit('actionExecuted')"
                class="ml-3"
            />
0 likes
0 replies

Please or to participate in this conversation.