コード例 #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     //
     $exhibitionId = Request::get('id');
     Exhibition::where('id', $exhibitionId)->delete();
     return redirect("exhibitions");
 }
コード例 #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     //
     $seriesevent = SeriesEvent::find($id);
     $exhibitions = Exhibition::all();
     $exhibitors = Exhibitor::all();
     return view('seriesevents.edit', compact('seriesevent', 'exhibitors', 'exhibitions'));
 }
コード例 #3
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     //
     $exhibitions = Exhibition::all();
     $halls = Hall::all();
     $exhibitionevent = ExhibitionEvent::find($id);
     return view('exhibitionevents.edit', compact('exhibitionevent', 'exhibitions', 'halls'));
 }
コード例 #4
0
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(Request $request, $id)
 {
     $art = Exhibition::find($id);
     $art->fill($request->input())->save();
     return redirect('exhibition');
 }