nova-flexible-content
nova-flexible-content copied to clipboard
Replicate - thing crashes
Nova model crashes if I try and replicate another one
$templater = Campaign::where('id', 88)->first(); $new_ish = $templater->replicate(); $new_ish->save();
Error, error
[2022-11-02 13:15:22] production.ERROR: Undefined property: stdClass::$layout {"userId":1,"exception":"[object] (ErrorException(code: 0): Undefined property: stdClass::$layout at /home/forge/rrdevours.monster/vendor/whitecube/nova-flexible-content/src/Value/Resolver.php:41) [stacktrace]
Also any tips on how to loop through and edit each one in a replicated model to make some modifications? Thanks!