Is it possible to insert or create a copy of data automatically from current table to other table?

Is is possible, when I create a data in tb1 it will create also a copy in tb2?

I'm trying an automation here, I'm trying to insert the data from current form to othe table upon submission.
Solution
observers or afterCreate hook in your CreatePage

protected function afterCreate(): void
{
    $replicate = $this->record->replicate();
    $replicate = $replicate->toArray();

    AnotherModel::firstOrCreate($replicate);
}
Was this page helpful?