Reiseland Kontaktdaten, Rabatt API

This commit is contained in:
Kevin Adametz 2019-11-07 17:08:16 +01:00
parent 8f29c15a2b
commit 70704be1ea
30 changed files with 471 additions and 95 deletions

View file

@ -151,12 +151,15 @@ class DraftController extends Controller
'name' => $data['name'],
'active' => isset($data['active']) ? true : false,
'color' => $data['color'],
'pos' => $data['pos'],
]);
}else{
$draft_type = DraftType::find($data['id']);
$draft_type->name = $data['name'];
$draft_type->active = isset($data['active']) ? true : false;
$draft_type->color = $data['color'];
$draft_type->pos = $data['pos'];
$draft_type->save();
}