Can a Relation manager use get actions?

I have a Resource for category and a relation for posts in that category, I want to create a generate button sort of like create button on the top right hand side.
I have this in my PostRelationsManager.php
    protected function getActions(): array
    {
        $actions[] = CreateAction::class::make();
        $actions[] = Action::make('Generate')
            ->color('danger')
            ->requiresConfirmation()
            ->icon('heroicon-o-document-search')
            ->action('generatePost');

        return $actions;
    }
Was this page helpful?