/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { // $seriesevents = SeriesEvent::all(); $event = Event::find($id); return view('events.edit', compact('seriesevents', 'event')); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { // $serieseventId = Request::get('id'); SeriesEvent::where('id', $serieseventId)->delete(); return redirect("seriesevents"); }