Ejemplo n.º 1
0
 /**
  * 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'));
 }
Ejemplo n.º 2
0
 /**
  * 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");
 }