forked from eatvio/eatvio-infra
WIP recipe
This commit is contained in:
@@ -63,7 +63,13 @@ class Edit extends Component
|
||||
|
||||
public function addIngredient()
|
||||
{
|
||||
$this->ingredients[] = ['name' => '', 'portion' => ''];
|
||||
// $this->ingredients[] = ['name' => '', 'portion' => ''];
|
||||
$this->ingredients[] = [
|
||||
'name' => $this->ingredients_name,
|
||||
'portion' => $this->ingredients_portion,
|
||||
'unit' => $this->ingredients_unit
|
||||
];
|
||||
$this->reset('ingredients_name', 'ingredients_portion', 'ingredients_unit');
|
||||
}
|
||||
|
||||
public function removeIngredient($i)
|
||||
@@ -135,6 +141,7 @@ class Edit extends Component
|
||||
|
||||
public function publish()
|
||||
{
|
||||
dd($this->steps);
|
||||
$this->validate();
|
||||
|
||||
$recipe = $this->recipe;
|
||||
|
||||
Reference in New Issue
Block a user