Open HeadStudios opened 1 year ago
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!
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!