79535804

Date: 2025-03-26 08:35:03
Score: 3.5
Natty:
Report link

I have also came up with approach when I am deleting all records (all steps) and inserting them:

if ($this->recipeId != 0) {
    GuideStep::where('recipe_id', $recipeId)->delete();
}
 GuideStep::insert($groupedSteps);

What do you think?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dmytro Shved