This commit is contained in:
chrosey
2017-09-13 07:52:34 +02:00
parent a1f16c37f4
commit 2340b0226b
24621 changed files with 2912161 additions and 149 deletions
@@ -50,6 +50,7 @@ class VeranstaltungController extends Controller
if ($input['ende']) {
$v->ende = new \Carbon\Carbon($input['ende']);
}
$v->ort_id = $input['ort'];
$v->hinweise = $input['hinweise'] ?: "";
if ($v->save()) {
@@ -102,6 +103,7 @@ class VeranstaltungController extends Controller
$veranstaltung->hinweise = $i['hinweise'];
$veranstaltung->beginn = new \Carbon\Carbon($i['beginn']);
$veranstaltung->ende = $i['ende'] ? new \Carbon\Carbon($i['ende']) : null;
$veranstaltung->ort_id = $i['ort'];
if($veranstaltung->save()){
return redirect()->route('veranstaltung.show', [$veranstaltung]);
}