-
Notifications
You must be signed in to change notification settings - Fork 52
Open
@Siebov
Description
Hello. You are using
RecipeIngredient::whereNotIn('id',$ingredients_updated)
->where('recipe_id',$recipe->id)
->delete();
RecipeDirection::whereNotIn('id',$directions_updated)
->where('recipe_id',$recipe->id)
->delete();
and why not just
$recipe->ingredients()->sync($ingredients_updated);
$recipe->directions()->sync($directions_updated);
insted?
Metadata
Metadata
Assignees
Labels
No labels