"Activity not found",]; $child_activity = Activity::where ("activity_id", $child_activity_id)->first (); $child_activity->delete (); // TODO: Should Undo create a new activity in database? return ["success" => "Activity undone",]; } }