Access handleRecordCreation on resource

I have a create class in one of my resources, within this resource i use the handleRecordCreation() However i want to access this method when doing a form action for a resource manager.

->headerActions([
                Tables\Actions\CreateAction::make()
                    ->using(function (array $data, RelationManager $livewire) {
                        //...
                    }),
])


This is in the table actions of my tables

class CreateAgreement extends CreateRecord
{
    protected static string $resource = AgreementResource::class;

    protected function handleRecordCreation(array $data): Model
    {
        // ..
    }
}


Rather than duplicate, or create a laravel action class or similar, is there a desired "filament way" to use the logic from handleRecordCreation() from within the using() method on table actions.
Was this page helpful?