feat: ingredientds

This commit is contained in:
2026-05-18 14:51:25 +02:00
parent 7a907f2b17
commit 8c612452f2
8 changed files with 50 additions and 4 deletions
+2
View File
@@ -12,6 +12,7 @@ class MealPostIngredients extends Model
'meal_posts_id',
'position',
'ingredient',
'quantity',
'unit',
];
@@ -23,6 +24,7 @@ class MealPostIngredients extends Model
protected function casts(): array
{
return [
'quantity' => 'integer',
'unit' => IngredientUnit::class,
];
}