feat: ingredientds
This commit is contained in:
@@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user