Alecto
Alecto
FFilament
Created by Alecto on 3/20/2024 in #❓┊help
Replicate to a different Model/Table
Hello, I am wondering if it's possible to replciate a record to a different table? I tried something like the below: ReplicateAction::make()->excludeAttributes(['instance_id','ruleId'])->beforeReplicaSaved(function (Model2 $replica): void{ }) But get an error stating I must use the same Model as the record. Any help appreciated. Thanks
9 replies